13–24 -extractImage: Extracting Images

13–24–1 Processing

Extracts the image data contained in the pages of the input PDF.

Note:
Only the image data placed on the PDF page will be extracted. This is not a process that converts the entire page into an image.

13–24–2 Example of commands

[Executing example commands]

Outputs the image data existing in test.pdf to the specified folder as a JPEG format file.

[Windows]

AHPDFToolCmd80.exe -extractImage C:\out -format 2 -d C:\test\test.pdf

[Linux]

AHPDFToolCmd80 -extractImage /home/antenna/sav -format 2 -d /home/antenna/test/test.pdf

13–24–3 Folder settings: applied

You can perform batch processing by specifying the input folder to the -d parameter. If a folder is specified, image data will be extracted from the PDF file in the input folder. Specify the output folder with the parameter [outFolderPath].

A subfolder with the input file name is created in the output folder.The output image data is saved in each subfolder.

13–24–4 Parameters

Parameter
Content
[outFolderPath]
[required]
Sets the output folder path for image files. The output file name is "input file name_page number_ serial number." Page numbers start with "1" The serial number starts from "0001" and is reset for each page.
-pageNo
Set the page number to extract images from. Can be omitted.
Page number is 0 origin. Therefore, the first page is counted from "0."
If not specified, extracts images of all pages

If specifying multiple names, separate them with commas.
Example) -pageNo "0,2-4"
Extracted from page 1 and pages 3 to 5.
-format
Image save format. Can be omitted.
0 = AUTO 1 = Bitmap
2 = JPEG 3 = PNG
If not specified, "0 = AUTO" is applied.