ftos.files.pdf.flatten

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

Flattens a stored PDF file and saves it to the file upload location. Flattening is the process of transforming an interactive PDF document into a non-interactive PDF, for instance to ensure that a form can no longer be modified after it has been filled.

This is a business logic method for business service components.

Syntax

function flattenPDF(sourceRealName: string, outputFileName: string): string
 
Parameter Description
sourceRealName Unique internal ID of the source PDF file (real name).
outputFileName File name assigned to the flattened PDF.

Return Value

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

Examples