ConvertPdfToImage 2025.3.28.13-SNAPSHOT¶
BUNDLE¶
com.snowflake.openflow.runtime | runtime-ocr-nar
DESCRIPTION¶
Converts a PDF file into a series of images, one for each page.
INPUT REQUIREMENT¶
REQUIRED
Supports Sensitive Dynamic Properties¶
false
PROPERTIES¶
Property |
Description |
---|---|
Dots Per Inch |
The Dots Per Inch (DPI) to use when rendering the image. Larger values can result in higher quality images, but also larger file sizes and slower processing. |
Max File Size |
Because the entire contents of the PDF file must be loaded into memory in order to parse it, this property is used to limit the size of the PDF file that can be processed. If a PDF file is larger than this value, it will be routed to failure. |
Max Page Size in Inches |
The maximum width/height of the image in inches. If the image is larger than this value, it will be scaled down to fit within this width. Using this property in conjunction with the Dots Per Inch property can help to control the size of the resulting image, ensuring that memory usage and processing time are kept in check. The default value of 11.0 allows for a standard page size of 8.5 x 11. The size is applied to the larger of the page’s width or height. |
Output Format |
The format to use when writing the image. |
Output Image Type |
The type of image to use when writing the image. |
RELATIONSHIPS¶
NAME |
DESCRIPTION |
---|---|
images |
The resulting images are routed to the success relationship. |
failure |
If a FlowFile cannot be converted into an image for any reason, it will be routed to this relationship. |
original |
The original PDF file is routed to this relationship when processing is successful. |
WRITES ATTRIBUTES¶
NAME |
DESCRIPTION |
---|---|
pageNumber |
The page number in the PDF Document that the image represents, with the first page having a value of 1. |
image.width.pixels |
The width of the image in pixels. |
image.height.pixels |
The height of the image in pixels. |
image.width.original.inches |
The width of the image in inches before scaling to the configured maximum size. |
image.height.original.inches |
The height of the image in inches before scaling to the configured maximum size. |
image.width.scaled.inches |
The width of the image in inches after scaling to the configured maximum size. |
image.height.scaled.inches |
The height of the image in inches after scaling to the configured maximum size. |