PdfRightsManagementSchema
6 Jul 20262 minutes to read
Represents metadata related to document rights and permissions.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access the document properties
let documentProperties: PdfDocumentInformation = document.getDocumentInformation(false);
// Gets XMP metadata
let xmp: PdfXmpMetadata = documentProperties.xmpMetadata;
// Sets rights information
xmp.rightsManagementSchema.isMarked = true;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();Properties
Get certificateUrl string
Gets the certificate URL.
Set certificateUrl void
Sets the certificate URL.
| Parameter | Type | Description |
|---|---|---|
| value | string |
The certificate URL to set. |
Get isMarked boolean
Gets whether the document is rights-marked.
Set isMarked void
Sets whether the document is rights-marked.
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
The rights-marked status to set. |
Get owners string[]
Gets the list of owners(rdf:Bag).
Set owners void
Sets the list of owners (rdf:Bag).
| Parameter | Type | Description |
|---|---|---|
| value | string[] |
The list of owners to set. |
Get schemaType PdfXmpSchemaType
Gets the schema type.
Get usageTerms PdfXmpLangArray
Gets the usage terms language (rdf:Alt).
Set usageTerms void
Sets the usage terms language (rdf:Alt).
| Parameter | Type | Description |
|---|---|---|
| value | PdfXmpLangArray |
The usage terms to set. |
Get webStatement string
Gets the web statement URL.
Set webStatement void
Sets the web statement URL.
| Parameter | Type | Description |
|---|---|---|
| value | string |
The web statement URL to set. |