/ PDF / PdfAnnotationExportSettings
Search results

PdfAnnotationExportSettings API in JavaScript PDF API control

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

dataFormat DataFormat

Gets the data format defined in annotation export settings.

exportAppearance boolean

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