• file rotated by 90 degrees after converted to PDF

    From Phillip Helbig (undress to reply@21:1/5 to All on Thu Sep 16 18:43:35 2021
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Reiser@21:1/5 to All on Thu Sep 16 13:29:51 2021
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phillip Helbig (undress to reply@21:1/5 to vendor@BitWagon.com on Fri Sep 17 04:43:00 2021
    In article <H_edncRkw4DdNN78nZ2dnUU7_8zNnZ2d@giganews.com>, John Reiser <vendor@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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ken@21:1/5 to All on Fri Sep 17 07:52:59 2021
    In article <si038n$njr$1@gioia.aioe.org>,
    helbig@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phillip Helbig (undress to reply@21:1/5 to ken@spamcop.net on Fri Sep 17 09:42:50 2021
    In article <MPG.3bae4ba7fab2350d9898cb@usenet.plus.net>, ken
    <ken@spamcop.net> writes:

    In article <si038n$njr$1@gioia.aioe.org>,
    helbig@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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ken@21:1/5 to All on Fri Sep 17 16:03:59 2021
    In article <si1nuq$1tou$1@gioia.aioe.org>,
    helbig@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phillip Helbig (undress to reply@21:1/5 to ken@spamcop.net on Fri Sep 17 16:00:56 2021
    In article <MPG.3baebeb658aec48d9898cc@usenet.plus.net>, ken
    <ken@spamcop.net> writes:

    In article <si1nuq$1tou$1@gioia.aioe.org>,
    helbig@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.

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)