PdfDublinCoreSchema
6 Jul 20266 minutes to read
Represents standard Dublin Core metadata for document description.
// 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 the creator
xmp.dublinCoreSchema.creator = ['Author Name'];
// Assign to documentProperties
documentProperties.xmpMetadata = xmp;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();Properties
Get contributor string[]
Gets the list of contributor (rdf:Bag).
Set contributor void
Sets the list of contributor (rdf:Bag).
| Parameter | Type | Description |
|---|---|---|
| value | string[] |
The list of contributor to set. |
Get coverage string
Gets the coverage.
Set coverage void
Sets the coverage.
| Parameter | Type | Description |
|---|---|---|
| value | string |
The coverage to set. |
Get creator string[]
Gets the list of creator (rdf:Seq).
Set creator void
Sets the list of creator (rdf:Seq).
| Parameter | Type | Description |
|---|---|---|
| value | string[] |
The list of creator to set. |
Get date string[]
Gets list of the date (rdf:Seq).
Set date void
Sets the list of date (rdf:Seq).
| Parameter | Type | Description |
|---|---|---|
| value | string[] |
The list of date to set. |
Get description PdfXmpLangArray
Gets the description (rdf:Alt).
Set description void
Sets the description (rdf:Alt).
| Parameter | Type | Description |
|---|---|---|
| value | PdfXmpLangArray |
The description to set. |
Get format string
Gets the format.
Set format void
Sets the format.
| Parameter | Type | Description |
|---|---|---|
| value | string |
The format to set. |
Get identifier string
Gets the identifier.
Set identifier void
Sets the identifier.
| Parameter | Type | Description |
|---|---|---|
| value | string |
The identifier to set. |
Get publisher string[]
Gets the publishers (rdf:Bag).
Set publisher void
Sets the publishers (rdf:Bag).
| Parameter | Type | Description |
|---|---|---|
| value | string[] |
The publishers to set. |
Get relation string[]
Gets the list of relation (rdf:Bag).
Set relation void
Sets the list of relation (rdf:Bag).
| Parameter | Type | Description |
|---|---|---|
| value | string[] |
The list of relation to set. |
Get rights PdfXmpLangArray
Gets the rights (rdf:Alt).
Set rights void
Sets the rights (rdf:Alt).
| Parameter | Type | Description |
|---|---|---|
| value | PdfXmpLangArray |
The rights to set. |
Get schemaType PdfXmpSchemaType
Gets the schema type.
Get source string
Gets the source.
Set source void
Sets the source.
| Parameter | Type | Description |
|---|---|---|
| value | string |
The source to set. |
Get subject string[]
Gets the list of subject (rdf:Bag).
Set subject void
Sets the list of subject (rdf:Bag).
| Parameter | Type | Description |
|---|---|---|
| value | string[] |
The list of subject to set. |
Get title PdfXmpLangArray
Gets the title (rdf:Alt).
Set title void
Sets the title (rdf:Alt).
| Parameter | Type | Description |
|---|---|---|
| value | PdfXmpLangArray |
The title to set. |
Get type string[]
Gets the list of type (rdf:Bag).
Set type void
Sets the list of type (rdf:Bag).
| Parameter | Type | Description |
|---|---|---|
| value | string[] |
The list of type to set. |