Thursday, April 16, 2009

Page Size in ps2pdf

ps2pdf is a linux tool, which can convert ps(or eps) file to pdf file. If you convert a ps file to a pdf, the default page size is letter. Some time you want to get different size plots. You can use

ps2pdf -dEPSCrop jet.eps
Or you can use epstopdf

epstopdf muonDetail.eps

This command is working only for eps file, which has a bounding box. If you open a ps file, you can see the

%!PS-Adobe-2.0 EPSF-2.0
%%BoundingBox: 0 0 567 552

There is no bounding box in ps file. So you can not get the special size pdf file from a ps file.

You also can use ps2eps to convert ps file to eps. This program will calculate the boundary box for ps file and generate new eps file with a boundary box.

ps2eps electron.ps





PostScript-to-PDF converter

0 comments:

Post a Comment