12-22 -pageExtract: Extracting Pages

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.

Example of commands

[Executing example commands]

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

  • Specifies splitting when outputting. Therefore, the save file name will be spitted and the output files will be "out_0.pdf" and "out_3-6.pdf" respectively.

[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

Folder settings: not applied

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.

Please enter alt text.