Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Noncombatant: A dead Quaker. -- Ambrose Bierce


devel / comp.lang.postscript / file rotated by 90 degrees after converted to PDF

SubjectAuthor
* file rotated by 90 degrees after converted to PDFPhillip Helbig (undress to reply
+* Re: file rotated by 90 degrees after converted to PDFJohn Reiser
|`- Re: file rotated by 90 degrees after converted to PDFPhillip Helbig (undress to reply
`* Re: file rotated by 90 degrees after converted to PDFken
 `* Re: file rotated by 90 degrees after converted to PDFPhillip Helbig (undress to reply
  `* Re: file rotated by 90 degrees after converted to PDFken
   `- Re: file rotated by 90 degrees after converted to PDFPhillip Helbig (undress to reply

1
file rotated by 90 degrees after converted to PDF

<si038n$njr$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9936&group=comp.lang.postscript#9936

  copy link   Newsgroups: comp.lang.postscript
Path: i2pn2.org!i2pn.org!aioe.org!PH0vlurjDpKxDQ6e/ktXnQ.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.lang.postscript
Subject: file rotated by 90 degrees after converted to PDF
Date: Thu, 16 Sep 2021 18:43:35 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <si038n$njr$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="24187"; posting-host="PH0vlurjDpKxDQ6e/ktXnQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Thu, 16 Sep 2021 18:43 UTC

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?

Re: file rotated by 90 degrees after converted to PDF

<H_edncRkw4DdNN78nZ2dnUU7_8zNnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9937&group=comp.lang.postscript#9937

  copy link   Newsgroups: comp.lang.postscript
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 16 Sep 2021 15:29:52 -0500
Date: Thu, 16 Sep 2021 13:29:51 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.1.0
Subject: Re: file rotated by 90 degrees after converted to PDF
Content-Language: en-US
Newsgroups: comp.lang.postscript
References: <si038n$njr$1@gioia.aioe.org>
From: ven...@BitWagon.com (John Reiser)
In-Reply-To: <si038n$njr$1@gioia.aioe.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <H_edncRkw4DdNN78nZ2dnUU7_8zNnZ2d@giganews.com>
Lines: 11
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-pv7lrD7i8tJ0T/IxGogjtn+3kSI87Sg0JANAxCTbE5dWDVrmvWv8GoPeS1U+wRdfiYSaWF3MsQ+vciT!y1RC91yyRwMYsHERLa+9Fi9d/BkKDE54H99b45QWIS02jA6KtNMxTugTpygB5QT/niJRduNK0bjT
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1638
 by: John Reiser - Thu, 16 Sep 2021 20:29 UTC

> 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.

Re: file rotated by 90 degrees after converted to PDF

<si16ck$13ni$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9938&group=comp.lang.postscript#9938

  copy link   Newsgroups: comp.lang.postscript
Path: i2pn2.org!i2pn.org!aioe.org!RnL5385RdWf7ivk/O8rcdg.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.lang.postscript
Subject: Re: file rotated by 90 degrees after converted to PDF
Date: Fri, 17 Sep 2021 04:43:00 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <si16ck$13ni$1@gioia.aioe.org>
References: <si038n$njr$1@gioia.aioe.org> <H_edncRkw4DdNN78nZ2dnUU7_8zNnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="36594"; posting-host="RnL5385RdWf7ivk/O8rcdg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Fri, 17 Sep 2021 04:43 UTC

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.

Re: file rotated by 90 degrees after converted to PDF

<MPG.3bae4ba7fab2350d9898cb@usenet.plus.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9939&group=comp.lang.postscript#9939

  copy link   Newsgroups: comp.lang.postscript
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!border2.nntp.ams1.giganews.com!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 17 Sep 2021 01:53:02 -0500
From: ken...@spamcop.net (ken)
Newsgroups: comp.lang.postscript
Subject: Re: file rotated by 90 degrees after converted to PDF
Date: Fri, 17 Sep 2021 07:52:59 +0100
Message-ID: <MPG.3bae4ba7fab2350d9898cb@usenet.plus.net>
References: <si038n$njr$1@gioia.aioe.org>
Reply-To: ken@spamcop.net
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/3.0.4
X-Antivirus: Avast (VPS 210916-2, 16/9/2021), Outbound message
X-Antivirus-Status: Clean
Lines: 22
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-F9iYaCo+h6uBmpwHIYGEvUwiD1DEMiKqTFYfhJ5j5ldnfxUhSgG7C2c74c37imGI3ydRH4x+noeCkGb!DKpHcRLdpumtdl+H2aadVOld9OTgprEyhgonHQh4yZyGoFwY5+Gtw8FDiPMzLbh9/zW1EmlDsb4l!YJrSjMW6QBZMUyQ=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1969
 by: ken - Fri, 17 Sep 2021 06:52 UTC

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

Re: file rotated by 90 degrees after converted to PDF

<si1nuq$1tou$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9940&group=comp.lang.postscript#9940

  copy link   Newsgroups: comp.lang.postscript
Path: i2pn2.org!i2pn.org!aioe.org!RnL5385RdWf7ivk/O8rcdg.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.lang.postscript
Subject: Re: file rotated by 90 degrees after converted to PDF
Date: Fri, 17 Sep 2021 09:42:50 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <si1nuq$1tou$1@gioia.aioe.org>
References: <si038n$njr$1@gioia.aioe.org> <MPG.3bae4ba7fab2350d9898cb@usenet.plus.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="63262"; posting-host="RnL5385RdWf7ivk/O8rcdg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Fri, 17 Sep 2021 09:42 UTC

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.

Re: file rotated by 90 degrees after converted to PDF

<MPG.3baebeb658aec48d9898cc@usenet.plus.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9941&group=comp.lang.postscript#9941

  copy link   Newsgroups: comp.lang.postscript
Path: i2pn2.org!i2pn.org!aioe.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 17 Sep 2021 10:04:02 -0500
From: ken...@spamcop.net (ken)
Newsgroups: comp.lang.postscript
Subject: Re: file rotated by 90 degrees after converted to PDF
Date: Fri, 17 Sep 2021 16:03:59 +0100
Message-ID: <MPG.3baebeb658aec48d9898cc@usenet.plus.net>
References: <si038n$njr$1@gioia.aioe.org> <MPG.3bae4ba7fab2350d9898cb@usenet.plus.net> <si1nuq$1tou$1@gioia.aioe.org>
Reply-To: ken@spamcop.net
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/3.0.4
X-Antivirus: Avast (VPS 210917-2, 17/9/2021), Outbound message
X-Antivirus-Status: Clean
Lines: 20
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-wETSFDzXX0F4dWsuqd5afLgWNgZo/uvYcDGsHRHffYmr9HIjW0ZG3Pi0EqEAJYDHphmoCifKuxxTm9J!cfFFs2MiSoqBHD8w1gtUTUWm/4sUJEIuHcZIyQieT2LI5S0Ybrp2zguIkyMYM1tAMxOkMS4LEmk7!+IKtXu+0Kt8VYm8=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1834
 by: ken - Fri, 17 Sep 2021 15:03 UTC

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

Re: file rotated by 90 degrees after converted to PDF

<si2e3n$mmd$3@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9942&group=comp.lang.postscript#9942

  copy link   Newsgroups: comp.lang.postscript
Path: i2pn2.org!i2pn.org!aioe.org!RnL5385RdWf7ivk/O8rcdg.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.lang.postscript
Subject: Re: file rotated by 90 degrees after converted to PDF
Date: Fri, 17 Sep 2021 16:00:56 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <si2e3n$mmd$3@gioia.aioe.org>
References: <si038n$njr$1@gioia.aioe.org> <MPG.3bae4ba7fab2350d9898cb@usenet.plus.net> <si1nuq$1tou$1@gioia.aioe.org> <MPG.3baebeb658aec48d9898cc@usenet.plus.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="23245"; posting-host="RnL5385RdWf7ivk/O8rcdg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Fri, 17 Sep 2021 16:00 UTC

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.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor