ftos.files.pdf.setPdfType

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

Converts a PDF file to the PDF/A-1a or PDF/A-1b standard and saves it in the file upload location.

This is a business logic method for business service components.

Syntax

Copy
function ftos.files.pdf.setPdfType(fileRealName: string, pdfType: enum, newFileName: string): string;
 
Parameter Type Description
fileRealName string Unique internal ID of the PDF file (real name).
pdfType enum
  • PDF_A_1A - for the PDF/A-1a, level A (accessible) conformance.
  • PDF_A_1B - PDF/A-1b, level B (basic) conformance.
newFileName string File name assigned to the converted PDF.

Return Value

Returns a string that contains the converted PDF's real name.

Examples