HelpBot Assistant

How can I help you?

PdfAnnotationExportSettings

6 Feb 20261 minute to read

Represents annotation export settings.

// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Sets export data format as JSON type to annotation export settings
let settings: PdfAnnotationExportSettings = new PdfAnnotationExportSettings();
// Set the data format defined in annotation export settings
settings.dataFormat = DataFormat.json;
// Export annotations to JSON format
let json: Uint8Array = document.exportAnnotations(settings);
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();

Properties

Get dataFormat DataFormat

Gets the data format defined in annotation export settings.

Set dataFormat void

Sets the data format defined in annotation export settings.

Parameter Type Description
format DataFormat Specifies the data format.

Get exportAppearance boolean

Gets the boolean value indicating whether the appearance of a particular object can be exported or not.

Set exportAppearance void

Sets the boolean value indicating whether the appearance of a particular object can be exported or not.

Parameter Type Description
value boolean The boolean value.