extractDocument

Extracts a page range from a stored PDF file and saves it to a new PDF file in the file upload location.

Syntax

function extractDocument(sourceRealName: string, destinationName: string, startPage: number, endPage: number): string
 
Parameter Description
sourceRealName Unique internal ID of the source PDF file (real name).
destinationName File name assigned to the extracted PDF.
startPage Page number of the source PDF file where the page range extraction starts.
endPage Page number of the source PDF file where the page range extraction ends.
NOTE  
If you wish to extract a single page, enter the same value for startPage and endPage.

Return Value

Returns a string containing the extracted PDF's real name.

Examples