I'm using a tool which generates a postscript file where the bounding box doesn't necessarily correlate to a specific page type (8.5x11, etc.). In fact, the PS page size is much larger than most page sizes, it might be as large as 50in x 50in etc.

ps2pdf will create a pdf output that:

* uses the default page size
* uses the page size if a page type if specified on the command line
* uses X and Y dimensions if provided in the command line.

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.


Thanks



Reply via email to