Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ps2pdf: preserve page size

I have myfile.ps with a vector image included. But when I run

ps2pdf myfile.ps

it seems that the output page size is A4: the vector image is too large and become cut away, so about one inch is lost.

The following pseudo-header is printed in the output PDF file, in addition to the original vector image:

PLOT SIZE:8.02x8.62Inches
Magnification:7354.21X

Is there any option or any way to convert the PS file to a PDF preserving the original paper size?

like image 363
BowPark Avatar asked May 08 '15 16:05

BowPark


1 Answers

If the input postscript has an EPS BoundingBox, this should preserve the page size:

ps2pdf -dEPSCrop <input.ps> <output.pdf>

like image 191
Raman Avatar answered Oct 18 '22 17:10

Raman