[poppler] crop pages with poppler's pdftops

Istvan Gabor suseuser04 at freemail.hu
Wed Oct 20 09:45:47 PDT 2010


I have a pdf file I want to convert to ps with poppler's pdftops, but pstops adds a white frame around the original page.
xpdf tools' pstops has a -pagecrop option but poppler's pdftops has not. How can I achieve the same -pagecrop effect with poppler's pdftops?

Here are the propertie of the different files:

the original pdf properties:

> gs -sDEVICE=bbox orig.pdf
GPL Ghostscript 8.64 (2009-02-03)
%%BoundingBox: 61 28 781 568

> pdfinfo orig.pdf
Page size:      539 x 718 pts

properties of ps made by xpdf:
> pdftops -pagecrop orig.pdf xpdf.ps
> gs -sDEVICE=bbox xpdf.ps
%%BoundingBox: 0 0 539 719

properties of ps made by poppler:
> pdftops  orig.pdf poppler.ps
> gs -sDEVICE=bbox poppler.ps
%%BoundingBox: 28 61 568 781

So I would like to have the same bounding box (0 0 539 719) using poppler.


More information about the poppler mailing list