Linux command
pdfseparate 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Extract all pages
pdfseparate [document.pdf] [output_%d.pdf]
Extract specific page range
pdfseparate -f [1] -l [10] [document.pdf] [output_%d.pdf]
Extract single page
pdfseparate -f [5] -l [5] [document.pdf] [page5.pdf]
说明
pdfseparate splits a PDF into individual pages. Each page becomes a separate PDF file. The output pattern must contain %d (or variants like %03d) which is replaced with the page number. This enables organized naming of output files. Page range options extract subsets of the document. Combined with specific page numbers, single pages can be extracted. The resulting files are standalone PDFs containing one page each. They can be recombined using pdfunite or used individually. All page content is preserved including annotations, links, and embedded resources.
参数
- -f _PAGE_
- First page to extract.
- -l _PAGE_
- Last page to extract.
- -v
- Print version.
- -h
- Print help.
FAQ
What is the pdfseparate command used for?
pdfseparate splits a PDF into individual pages. Each page becomes a separate PDF file. The output pattern must contain %d (or variants like %03d) which is replaced with the page number. This enables organized naming of output files. Page range options extract subsets of the document. Combined with specific page numbers, single pages can be extracted. The resulting files are standalone PDFs containing one page each. They can be recombined using pdfunite or used individually. All page content is preserved including annotations, links, and embedded resources.
How do I run a basic pdfseparate example?
Run `pdfseparate [document.pdf] [output_%d.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f _PAGE_ do in pdfseparate?
First page to extract.