Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2444

Re: converting to pdf messes up portrait to seascape

Newsgroups comp.lang.postscript
From Peter Billam <peter@www.pjb.com.au>
Subject Re: converting to pdf messes up portrait to seascape
References <slrnndka1q.1ml.peter@box8.pjb.com.au> <nbfaa8$d1e$1@dont-email.me> <slrnndn3hf.2h3.peter@box8.pjb.com.au>
Message-ID <slrnndnefr.3gc.peter@box8.pjb.com.au> (permalink)
Date 2016-03-06 05:02 +0000
Organization Unlimited download news at news.astraweb.com

Show all headers | View raw


On 2016-03-06, Peter Billam <peter@www.pjb.com.au> wrote:
> I'll embark on a line-by-line pruning-campaign
> to try to localise the problem...

Well, I can harldy believe it, but this fails
(ie: gs -sDEVICE=pdfwrite -sPAPERSIZE=a4 rotates it into Seascape
 and viewing the pdf with gv translates it, cropping the text in half)

%!PS-Adobe-2.0
%%EndComments
%%BeginProlog
%%EndProlog
%%Page: 1 1
%%BeginPageSetup
%%EndPageSetup
/xmax 595.2 def  /ymax 841.8 def  /horizon ymax 0.28 mul def
gsave  % an attempt to protect the showpage in -sDEVICE=pdfwrite
0 ymax 0.5 mul  xmax ymax  rectfill
0 ymax 0.5 mul translate 0.707 0.707 scale -90 rotate
/ZapfChancery-MediumItalic findfont horizon 0.4 mul scalefont setfont
xmax 0.22 mul horizon 0.38 mul moveto (pjb.com.au) show
grestore showpage
%%EOF

whereas the same thing succeeds when I comment out the
  xmax 0.22 mul horizon 0.38 mul moveto (pjb.com.au) show
line thus:
  % xmax 0.22 mul horizon 0.38 mul moveto (pjb.com.au) show
!

It's amazing...  I have used this
  | gs -q -sDEVICE=pdfwrite -sPAPERSIZE=a4 -sOutputFile=x.pdf -
dozens of times per day for decades now (I runs it as a pipe because
I have other processes that put the PS together) and I've never had
this PDF-in-Seascape problem before; indeed those Makefiles still work.
It must be related to the translate and rotate in conjunction with
the string...

It's not just about the show, because it also fails if I use
  charpath clip  and  rectfill   ...

I'm using debian stable:
  box8 (debian) ~> gs --version
  9.06
  box8 (debian) ~> gv --version
  gv 3.7.4

Peter

-- 

Peter Billam    www.pjb.com.au    www.pjb.com.au/comp/contact.html

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

converting to pdf messes up portrait to seascape Peter Billam <peter@www.pjb.com.au> - 2016-03-05 00:28 +0000
  Re: converting to pdf messes up portrait to seascape Martin Leese <please@see.Web.for.e-mail.INVALID> - 2016-03-05 12:02 -0700
    Re: converting to pdf messes up portrait to seascape Peter Billam <peter@www.pjb.com.au> - 2016-03-06 01:56 +0000
      Re: converting to pdf messes up portrait to seascape Peter Billam <peter@www.pjb.com.au> - 2016-03-06 05:02 +0000
        Re: converting to pdf messes up portrait to seascape luser- -droog <mijoryx@yahoo.com> - 2016-03-05 21:34 -0800
    Re: converting to pdf messes up portrait to seascape Martin Leese <please@see.Web.for.e-mail.INVALID> - 2016-03-05 23:07 -0700

csiph-web