Search

Document Instance Split

Articles

Use this function to split the document based on the input type.

Syntax

Document Instance Split (pdf_id, doc_type)

Parameters

Input Parameter Name Description
pdf_id FileID of the PDF document
doc_type Type of the split PDF (Invoice, BOL, PO, Debit)

Returns

Return Value Description
Table(DocSplitTable) Data Table with columns:
  • FileName: Filename of the split PDF
  • FID: Fileserver ID of the split PDF
  • Type: Type of the split PDF (same as doc_type provided as input)
  • NumberOfPages: Number of pages in the split pdf
  • StartPage: Reference page from input pdf where the split pdf starts.
  • EndPage: Reference page number from input pdf where the split pdf end.

Output variable of type Table should be created with Table Definition DocSplitTable.

Sample

Document Instance Split (8jki838hdjhe23ndw9, Invoice)

  • If the input file contains two invoice PDFs, the file is split into two Invoice PDFs Invoice-1, Invoice-2.

The path and the name of the output files are automatically assigned by the function.

To view all the Document functions, click here.

Did you find what you were looking for?