ftos.files.pdf.getPages

IMPORTANT!  
Starting with v24.3.0, this is renamed from extractDocument to ftos.files.pdf.getPages.

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

This is a business logic method for business service components.

Syntax

function ftos.files.pdf.getPages(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