PdfSchema
6 Jul 20261 minute to read
Represents the base schema for PDF document metadata properties.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Create XMP metadata
let xmp: PdfXmpMetadata = new PdfXmpMetadata();
// Sets PDF keywords
xmp.pdfSchema.keywords = 'sample, pdf, metadata';
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();Properties
Get keywords string
Gets the PDF keywords.
Set keywords void
Sets the PDF keywords.
| Parameter | Type | Description |
|---|---|---|
| value | string |
The PDF keywords to set. |
Get pdfVersion string
Gets the PDF version.
Set pdfVersion void
Sets the PDF version.
| Parameter | Type | Description |
|---|---|---|
| value | string |
The PDF version to set. |
Get producer string
Gets the PDF producer.
Set producer void
Sets the PDF producer.
| Parameter | Type | Description |
|---|---|---|
| value | string |
The PDF producer to set. |
Get schemaType PdfXmpSchemaType
Gets the schema type.