bug-ghostscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ps2pdf and the right output size


From: Wouter Bergmann Tiest
Subject: Re: ps2pdf and the right output size
Date: Fri, 28 Aug 2009 17:52:26 +0200

Hi mr/mrs Anonymous,

On 25 Aug 2009, at 20:16, address@hidden wrote:

I've hacked up a script which gen's the PS, pulls out the pageboundingbox X and Y sizes out of the PS, and then passes these values to ps2pdf via the command line. This works ok but I'm wondering if there's a way to tell ps2pdf to just set the pdf page size to the pageboundingbox X and Y sizes defined in PS thus eliminating the need for me to determine these and feed them to ps2pdf via the command line.


Apparently you have reimplemented the perl script "epstopdf" by Sebastian Rahtz et al. which does exactly that: extract the bounding box and create the right size PDF, see
http://tug.ctan.org/tex-archive/support/epstopdf/
Unfortunately, there is not a more elegant way. Even Adobe's own Distiller needs to be told the correct page size of the PDF when converting from PostScript. Incidentally, if you're on a Mac with OS- X, everything just works out of the box by opening your PS file in Preview and saving as PDF, or by using the command line program "pstopdf".

Regards,

Wouter Bergmann Tiest




reply via email to

[Prev in Thread] Current Thread [Next in Thread]