convertToPdfType

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

Syntax

Copy
function convertToPdfType(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