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
examples
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
source
page=${filename}_${i}
pdfseparate -f $i -l
$i $1
${page}.pdf
convert -density $dens ${page}.pdf ${page}.png
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