Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

file rotated by 90 degrees after converted to PDF

13 views
Skip to first unread message

Phillip Helbig (undress to reply)

unread,
Sep 16, 2021, 2:43:44 PM9/16/21
to
I have produced dozens if not hundreds of PostScript files (plots,
diagrams, etc.) with the same Fortran program. They look fine when
viewed with ghostscript or when printed out or when embedded in a LaTeX
document. In TWO cases I've notived that after converting them to PDF
with ghostview, PDF viewers show them rotated by 90 degrees.

Any ideas?

The PostScript files are probably not 100% perfect (though they are
generally well written and compact), but good enough for what I need
(with those two exceptions).

Any ideas?

John Reiser

unread,
Sep 16, 2021, 4:29:58 PM9/16/21
to
> In TWO cases I've notived that after converting them to PDF
> with ghostview, PDF viewers show them rotated by 90 degrees.

What are the bounding boxes? Check for coordinates that are zero or negative,
or unusual aspect ratio.

Check for "inadvertent" setting of "best orientation", "size to fit", etc.

Run an extra ps2ps with explicit specification of orientation of output media.

Run ghostview (ghostscript: /usr/bin/gs) under valgrind.

Phillip Helbig (undress to reply)

unread,
Sep 17, 2021, 12:43:02 AM9/17/21
to
In article <H_edncRkw4DdNN78...@giganews.com>, John Reiser
<ven...@BitWagon.com> writes:

> > In TWO cases I've notived that after converting them to PDF
> > with ghostview, PDF viewers show them rotated by 90 degrees.
>
> What are the bounding boxes? Check for coordinates that are zero or negative,
> or unusual aspect ratio.

That's not it. All are standard plots, roughly the same size, and so
on.

> Check for "inadvertent" setting of "best orientation", "size to fit", etc.

Nope.

> Run an extra ps2ps with explicit specification of orientation of output media.
>
> Run ghostview (ghostscript: /usr/bin/gs) under valgrind.

Will have to try that.

ken

unread,
Sep 17, 2021, 2:53:03 AM9/17/21
to
In article <si038n$njr$1...@gioia.aioe.org>,
hel...@asclothestro.multivax.de says...

> diagrams, etc.) with the same Fortran program. They look fine when
> viewed with ghostscript or when printed out or when embedded in a LaTeX
> document. In TWO cases I've notived that after converting them to PDF
> with ghostview, PDF viewers show them rotated by 90 degrees.

Why use Ghostview to create the PDF rather than using Ghostscript
directly ?

Apart from any other considerations, GSView (I'm assuming that's what
you mean by ghostview) doesn't work with recent versions of Ghostscript
which means you're locked to an old version, with bugs and security
issues.

Anyway, the 'most likely' explanation is that the majority of the text
is horizontal when the page is rotated. You need to set -
dAutoRotatePages=false to prevent that.


Ken

Phillip Helbig (undress to reply)

unread,
Sep 17, 2021, 5:42:54 AM9/17/21
to
In article <MPG.3bae4ba7f...@usenet.plus.net>, ken
<k...@spamcop.net> writes:

> In article <si038n$njr$1...@gioia.aioe.org>,
> hel...@asclothestro.multivax.de says...
>
> > diagrams, etc.) with the same Fortran program. They look fine when
> > viewed with ghostscript or when printed out or when embedded in a LaTeX
> > document. In TWO cases I've notived that after converting them to PDF
> > with ghostview, PDF viewers show them rotated by 90 degrees.
>
> Why use Ghostview to create the PDF rather than using Ghostscript
> directly ?

Sorry, typo; I converted with ghostscript.

> Apart from any other considerations, GSView (I'm assuming that's what
> you mean by ghostview) doesn't work with recent versions of Ghostscript
> which means you're locked to an old version, with bugs and security
> issues.

I'm using GV, which IIRC is the result of some fork, on VMS. Yes, it
works only for older stuff. I have a newer ghostscript.

> Anyway, the 'most likely' explanation is that the majority of the text
> is horizontal when the page is rotated. You need to set -
> dAutoRotatePages=false to prevent that.

Interesting idea. However, it is a plot and the only text are the axis
labels, one letter each.

ken

unread,
Sep 17, 2021, 11:04:03 AM9/17/21
to
In article <si1nuq$1tou$1...@gioia.aioe.org>,
hel...@asclothestro.multivax.de says...

> > Anyway, the 'most likely' explanation is that the majority of the
text
> > is horizontal when the page is rotated. You need to set -
> > dAutoRotatePages=false to prevent that.
>
> Interesting idea. However, it is a plot and the only text are the axis
> labels, one letter each.


Well to be perfectly honest, that wasn't at all clear.

I could sit here and throw out ideas only for you to shoot them down, or
you could just put an example file somewhere I could look at it. Or if
you think there's a bug you could open a bug report.


Ken

Phillip Helbig (undress to reply)

unread,
Sep 17, 2021, 12:00:57 PM9/17/21
to
In article <MPG.3baebeb65...@usenet.plus.net>, ken
Would like to post here, but even the smallest file is too big for my
NNTP server. Will come back when I have time to set up a link etc.

0 new messages