+1 for Thomas. Usually for those one-offs, a GUI pdf tool will do the trick just fine.
As for qpdf, either of these should work: $ qpdf january-27-2020.pdf --pages . 6-7 -- Story.pdf $ qpdf --empty --pages january-27-2020.pdf 6-7 -- Story.pdf A simpler and less feature-rich tool is the poppler-utils package. $ dpkg -s poppler-utils | sed -ne '/^Description:/,/Homepage:/p' Description: PDF utilities (based on Poppler) Poppler is a PDF rendering library based on Xpdf PDF viewer. . This package contains command line utilities (based on Poppler) for getting information of PDF documents, convert them to other formats, or manipulate them: * pdfdetach -- lists or extracts embedded files (attachments) * pdffonts -- font analyzer * pdfimages -- image extractor * pdfinfo -- document information * pdfseparate -- page extraction tool * pdfsig -- verifies digital signatures * pdftocairo -- PDF to PNG/JPEG/PDF/PS/EPS/SVG converter using Cairo * pdftohtml -- PDF to HTML converter * pdftoppm -- PDF to PPM/PNG/JPEG image converter * pdftops -- PDF to PostScript (PS) converter * pdftotext -- text extraction * pdfunite -- document merging tool Homepage: http://poppler.freedesktop.org/ In your case, this should work: $ pdfseparate -f 6 -l 7 january-27-2020.pdf Story.pdf Good luck. And let us know what you tried and what works for you. Regards, - Robert On Tue, Feb 4, 2020 at 6:30 PM Tomas Kuchta <[email protected]> wrote: > Unless you have a lots of files to process - the easiest path is to open > your PDF in your favourite PDF viewer (evince/okular/xpdf/....) and print > desired pages to new PDF file. > > -T > > On Tue, Feb 4, 2020, 21:16 Dick Steffens <[email protected]> wrote: > > > I remember someone (Rich?) mentioning a program called something like > > pdftools. I'm having trouble locating same on my Xubuntu system. I've > > found qpdf installed, and I found some instructions online for using it, > > but following the instructions did not produce the desired results. I > > have a long pdf from which I want to extract pages 6 and 7. Here's what > > I tried: > > > > rsteff@ENU-2:~/Desktop$ qpdf january-27-2020.pdf --pages > > january-27-2020.pdf 6-7 --Story.pdf > > > > qpdf: insufficient arguments to --pages > > > > Usage: qpdf [options] infile outfile > > For detailed help, run qpdf --help > > > > Am I trying to use the wrong tool? What is recommended? > > > > Thanks. > > > > -- > > Regards, > > > > Dick Steffens > > > > _______________________________________________ > > PLUG mailing list > > [email protected] > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
