Export as Images Activity
The Export as Images activity converts pages from a specified PDF file into image files. It supports various image formats, including PNG, JPEG, TIFF, BMP, and GIF. This activity enables users to extract visual content from PDFs for further processing or display.
| Field | Description | Requirement |
|---|---|---|
| Pdf Name | The reference name for the PDF file to be processed. | Required |
| Start Page | The starting page number of the PDF to export. | Optional |
| End Page | The ending page number of the PDF to export. | Optional |
| Output Path | The directory where the generated image files will be saved. The activity creates image files with the same base name as the PDF, appended with the page number. | Required |
| DPI | The resolution of the output images in Dots Per Inch (DPI). The default value is 144 dpi. | Required |
| Image Type | The desired format for the output image files, selected from a dropdown list. The default format is PNG. | Required |
Action Types & Examples
Pdf Name
- Format:
string - Example Result:
"${RobustaPdf}"
Start Page
- Format:
digit - Example Result:
1
End Page
- Format:
digit - Example Result:
3
Output Path
- Format:
string - Example Result:
"C:\Robusta"
DPI
- Format:
digit - Example Result:
300
Image Type
- Format:
string - Example Result:
"png"
Implementation Examples
Field Setup - Pdf Name: ${RobustaPdf} - Start Page: 1 - End Page: 3 - Output Path: C:\Robusta - DPI: 300 - Image Type: png
Execution Parameters - Pdf Name: ${RobustaPdf} - Start Page: 1 - End Page: 3 - Output Path: C:\Robusta - DPI: 300 - Image Type: png
Technical Notes
The activity names the output image files using the PDF's base name, appended with
_page_and the page number (e.g.,robusta_page_1.png,robusta_page_2.png,robusta_page_3.png). If no start or end page is specified, the activity processes all pages of the PDF. The default resolution for images is 144 DPI, and the default image format is PNG.