Last Updated: Feb 14, 2022
Use this function to extract the image of the region in the PDF specified by the given selectors.
Extract Image (fid, left, top, right, bottom, page_number, image_format)
Input Parameter Name | Description |
---|---|
fid | OutputXmlFID passed from the Doc Reader node |
left | A keyword to the left of the image |
top | A keyword above the image |
right | A keyword to the right of the image |
bottom | A keyword below the image |
page_number | The page number to extract image from Provide 0 to search across all pages |
image_format | Image format for saving Example: TIFF, JPG, GIF, PNG, and JPEG |
- Use NA for the parameters where you do not want to specify a keyword. In this case, the area till the end of the page is considered.
- You can specify NA in a maximum of three fields.
Return Value | Description |
---|---|
Path | Path of the output file |
Extract Image (FID, 25/01/2021, Description, City, Cust1234, 2, JPG)
- If a keyword you have specified does not have a match in the PDF, then an error Failed to find any area matching given criteria is displayed.
- The path and the name of the output file are automatically assigned by the function.
To view all the Document functions, click here.