Linux Commands Examples

A great documentation place for Linux commands

pdfseparate

Portable Document Format (PDF) page extractor


see also : pdfunite

Synopsis

pdfseparate [options] PDF-file PDF-page-pattern


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

2
source
            
pdf_page=${pdf_page[1]}
pdfseparate "$source_pdf" "$temporary_pdfs"
args=""
four_roof=$(( $pdf_page % 4 == 0 ? $pdf_page / 4 : $pdf_page / 4 + 1 ))
elif which pdfinfo pdfseparate pdfunite >/dev/null 2>&1; then
with_poppler "$input_pdf" "$output_pdf"
else
0
source
            
page=${filename}_${i}
pdfseparate -f $i -l $i $1 ${page}.pdf
convert -density $dens ${page}.pdf ${page}.png
0
source
            
pdfunite pdfseparate pdfimages tiff2pdf tiff2ps
PDF files too large? Try this and adjust -quality value:

description

pdfseparate extract single pages from a Portable Document Format (PDF).

pdfseparate reads the PDF file PDF-file, extracts one or more pages, and writes one PDF file for each page to PDF-page-pattern, PDF-page-pattern should contain %d. %d is replaced by the page number.
The PDF-file should not be encrypted.

options

-f number

Specifies the first page to extract. If -f is omitted, extraction starts with page 1.

-l number

Specifies the last page to extract. if -p is omitted, extraction ends with the last page.

-v

Print copyright and version information.

-h

Print usage information. (-help and --help are equivalent.)

example

pdfseparate sample.pdf sample-%d.pdf
extracts all pages from sample.pdf, if i.e. sample.pdf has 3 pages, it
produces
sample-1.pdf, sample-2.pdf, sample-3.pdf


see also

pdfunite ,


author

The pdfseparate software and documentation are copyright 1996-2004 Glyph & Cog, LLC and copyright 2005-2011 The Poppler Developers - http://poppler.freedesktop.org

How can this site be more helpful to YOU ?


give  feedback