[Gs-devel] Cutting pages

Alex Cherepanov alex at artifex.com
Fri May 4 10:32:00 PDT 2001


From: Francesco Zappa Nardelli...

> JI> Is there any way to "cut" the 3 last pages from the .ps and have
> JI> only the first page in the .pdf ?

> You could try something like
>  psselect -p1 input.ps | ps2pdf - out.ps
> psselect is to be found in the psutils package, and I believe it has
> nothing to do with ghostscript (am I right?).

The answer has nothing to do with Ghostscript.
psselect is unreliable because it requires DSC compliance,
i.e. not compatible with the most popular system.

The poster may ask how to do it with Ghostscript.
One can convert the whole file to PDF first.

  ps2pdf foo.ps bar.pdf

And convert selected pages to PDF

  ps2pdf -dFirstPage#1 -dLastPage#1 bar.pdf baz.pdf

Regards,
Alex Cherepanov







More information about the gs-devel mailing list