/ PDF / PdfFileStructure
Search results

PdfFileStructure API in JavaScript (ES5) PDF API control

PdfFileStructure class represents the internal structure of the PDF file.

// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access the internal file structure of the PDF document
let fileStructure: PdfFileStructure = document.fileStructure;
// Set the cross reference type
fileStructure.crossReferenceType = PdfCrossReferenceType.stream;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();

Properties

crossReferenceType PdfCrossReferenceType

Gets the cross reference type of the PDF document.

isIncrementalUpdate boolean

Gets the boolean flag indicating whether the update is incremental.