pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: wip/pdftk and NetBSD 4.0 and gcj: libgcj.spec: No such file or directory
On Sat, 29 Dec 2007 10:26:08 -0600 (CST)
"Jeremy C. Reed" <reed%reedmedia.net@localhost> wrote:
[...]
> p.s. I just need to cut out some PDF pages. texexec loses the page
> size and changes formatting but pdftk works good last time I used it.
> gv converting PDF and saving selected pages to postscript looks
> terrible (loses font details?). If anyone knows of an alternative,
> please let me know.
The most canonical way to do this is to use GhostScript directly. This
will extract the page 2:
% gs -sDEVICE=pdfwrite -dBATCH -dQUIET -dNOPAUSE \
-dFirstPage=2 -dLastPage=2 -sOutputFile=page2.pdf \
original.pdf
If you want to merge extracted pages (or page groups), just do the
following:
% gs -sDEVICE=pdfwrite -dBATCH -dQUIET -dNOPAUSE \
-sOutputFile=merged-pages.pdf pageA.pdf pageB.pdf [...]
This will preserve page sizes and embedded fonts.
--
Nikola Lečić :: Никола Лечић
Home |
Main Index |
Thread Index |
Old Index