How can I help you?
PdfFileStructure
6 Feb 20261 minute to read
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
Get crossReferenceType PdfCrossReferenceType
Gets the cross reference type of the PDF document.
Set crossReferenceType void
Sets the cross reference type of the PDF document.
| Parameter | Type | Description |
|---|---|---|
| value | PdfCrossReferenceType |
Specifies the cross reference type of the PDF document. |
Get isIncrementalUpdate boolean
Gets the boolean flag indicating whether the update is incremental.
Set isIncrementalUpdate void
Sets the boolean flag indicating whether the update is incremental.
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
If true, enables incremental updates for the PDF document; otherwise, disables it. |