Search

Extract Image

Last Updated: Nov 23, 2020

Articles

Use this function to extract regions based on the given selectors. The output is the path of the folder that contains the matching images.

Syntax

Extract Image (fid, left, top, right, bottom, page_number, image_format)

Parameters

Input Parameter Name Description
fid OutputXmlFID from the Doc reader node
left A keyword that is at the bottom of the image
top A keyword that is at the top of the image
right A keyword that is at the right of the image
bottom A keyword that is at the bottom of the image
page_number Page number of pdf to search image.Provide 0 to search across all pages
image_format Image format for saving. eg.TIFF,JPG,GIF,PNG

Sample

Extract Image (123, L, T, R, B, 2, JPG)

  • Extracts the image from the file ‘ee239b1e-0cf3-4292-8598-803a85f7727d’, surrounded by the keywords ‘L’, ’T’, ‘R’ and ‘B’ on page number 2. The image is saved as a JPG file.

Returns

Return Value Description
Path Path of the output file

To view all the Document functions, click here.

Did you find what you were looking for?