PdfXmpSchemaType

6 Jul 20261 minute to read

Enum for supported XMP-Schema types.

// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data);
// Access the document properties
let documentProperties: PdfDocumentProperties = document.getDocumentInformation();
// Gets XMP metadata
let xmpMetadata: PdfXmpMetadata = documentProperties.xmpMetadata;
// Gets the basic schema from the XMP metadata
let basicSchema: PdfBasicSchema = xmpMetadata.basicSchema;
// Gets the schema type
let schemaType: PdfXmpSchemaType = basicSchema.schemaType;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
  • basic - Specifies the type of basic.
  • basicJobTicket - Specifies the type of basicJobTicket.
  • custom - Specifies the type of custom.
  • dublinCore - Specifies the type of dublinCore.
  • pagedText - Specifies the type of pagedText.
  • pdf - Specifies the type of pdf.
  • rightsManagement - Specifies the type of rightsManagement.