13–22 -pageExtract: Extracting Pages

13–22–1 Processing

Extracts specified pages or page ranges.

Note:
* Bookmarks and open action are not copied to the extracted PDF file. * The security information of the input file is also not carried over to the extracted PDF file.

13–22–2 Example of commands

[Executing example commands]

Extracts the 1st page and pages 4 to 7 from test.pdf and output.

[Windows]

AHPDFToolCmd80.exe -pageExtract "0,3-6" -divideFile -d C:\test\test.pdf -o C:\sav\out.pdf

[Linux]

AHPDFToolCmd80 -pageExtract "0,3-6" -divideFile -d /home/antenna/test/test.pdf -o /home/antenna/sav/out.pdf

13–22–3 Folder settings: not applied

13–22–4 Parameters

Parameter
Content
[PageRange]
[Required]
Sets the page number or page range to extract.
Page number is 0 origin. Therefore, the first page is counted from "0."

If specifying multiple names, separate them with commas.
(Example) "0,2-4"
-divideFile
Can be omitted.
If specified, outputs the PDF file by splitting it by comma in [PageRange]. The output file name has a page number added to the end of the specified output file name. If not specified, outputs the extracted pages to one file.
-copyInfo
Can be omitted
If specified, copies the document information of the input file to the output file.
If not specified, document information will not be copied.