Search
Close this search box.

Extract pages by barcode

Uses barcode values in PDF files to extract pages from the PDF file, you can also generate file names for the extracted files based on the barcode values.

Input Parameters

Required Parameters

File Name:
Data Type = string
The name of the source file, this will be used for the file name template.

File Content:
Data Type = string (byte – base 64 string)
The content of the source file, this should be converted to a base64 string if you are passing it from code, otherwise Power Automate handles this aspect.

File Name Template:
Data Type = string
Template for the output text result if a text match is found, any occurrence of variables in the list below will be replaced by the appropriate value at runtime.

  • %VALUE1%:The text extracted from the first zone that was extracted, if no zone was provided all the text in the page will be returned.
  • %VALUE2%, …, %VALUEn%The text extracted from the nth zone that was extracted.


No File Template:
Data Type = string
Template for the text to be returned if a text match is not found

Optional Parameters

Barcode Zones:
Data Type = Object []

A collection of variables that can be used to extract barcode information from PDF files, each member of this collection contains the properties listed below. Each member of this collection should produce a text output that corresponds to %VALUEn% of the Barcode Result Template discussed above.

Barcode Location:
Data Type = string
This represents the coordinates of a rectangle that covers the barcode you want us to extract. You can use this page to get the coordinates in relation to your input files.

Barcode Pattern:
Data Type = string
If a regular expression is provided here, we will match any extracted barcode to it and return the match.

Barcode Type:
Data Type = string[]
Specify the types of Barcode you want to identify

				
					"All 1D", "AZTEC", "CODABAR", "CODE 128", "CODE 39","CODE 93", "DATA MATRIX", "EAN 13", "EAN 8", "ITF","MAXICODE", "MSI", "PDF 417", "PLESSEY", "QR CODE","RSS 14", "RSS EXPANDED", "UPC A", "UPC E", "UPC EAN EXTENSION"
				
			

Output Parameters

Extracted Output Files:
Data Type = object[]
Array of Extracted Files with their corresponding file names.

File Content:
Data Type = string (byte – base 64 string)
A base 64 string representation of the spilt file.

File Name:
Data Type = string
File name for the extracted file above

Page Number:
Data Type = string
The page range containing the page number where the extraction occurred

Is Successful:
Data Type = boolean
This will return true if at least one page was extracted

License Info:
Data Type = string
Information about your API subscription key, it contains:

LicenseType
CallsRemaining
CallsMade
RenewalDate

Error:
Data Type = string
Contains the Error message returned by the operation if any exist.