[]
DsPdfJS API / Metadata
Represents XMP metadata associated with a PDF document.
new Metadata(
metadataProperties?):Metadata
Creates a new Metadata object with specified properties.
The optional settings for creating Metadata.
Metadata
ObjectBase.constructor
new Metadata(
om,metadataProperties?):Metadata
Creates a new Metadata object with specified properties.
An object manager that controls the lifetime of the Metadata object.
The optional settings for creating Metadata.
Metadata
ObjectBase.constructor
get contributors():
string[]
Gets or sets the list of document contributors. Maps to Dublin Core 'contributor' property.
string[]
set contributors(
value):void
Gets or sets the list of document contributors. Maps to Dublin Core 'contributor' property.
string[]
void
get copyright():
string
Gets or sets the document copyright. Maps to Dublin Core 'rights' property.
string
set copyright(
value):void
Gets or sets the document copyright. Maps to Dublin Core 'rights' property.
string
void
get coverage():
string
Gets or sets the document coverage. Maps to Dublin Core 'coverage' property.
string
set coverage(
value):void
Gets or sets the document coverage. Maps to Dublin Core 'coverage' property.
string
void
get createDate():
Date|null
Gets or sets the creation date. Maps to XMP 'CreateDate' property. If null, the current date/time is used.
Date | null
set createDate(
value):void
Gets or sets the creation date. Maps to XMP 'CreateDate' property. If null, the current date/time is used.
Date | null
void
get creators():
string[]
Gets or sets the list of document creators. Maps to Dublin Core 'creator' property.
string[]
set creators(
value):void
Gets or sets the list of document creators. Maps to Dublin Core 'creator' property.
string[]
void
get creatorTool():
string
Gets or sets the creator tool. In PDF/A compatible documents this value should be the same as DocumentInfo.creator.
string
set creatorTool(
value):void
Gets or sets the creator tool. In PDF/A compatible documents this value should be the same as DocumentInfo.creator.
string
void
get dates():
string[]
Gets or sets the list of document dates. Maps to Dublin Core 'date' property.
string[]
set dates(
value):void
Gets or sets the list of document dates. Maps to Dublin Core 'date' property.
string[]
void
get description():
string
Gets or sets the document description. Maps to Dublin Core 'description' property.
string
set description(
value):void
Gets or sets the document description. Maps to Dublin Core 'description' property.
string
void
get id():
number
Gets the reference to the object.
number
get identifier():
string
Gets or sets the document identifier. Maps to Dublin Core 'identifier' property.
string
set identifier(
value):void
Gets or sets the document identifier. Maps to Dublin Core 'identifier' property.
string
void
get keywords():
string[]
Gets or sets the list of document keywords, or subjects. Maps to Dublin Core 'subject' property.
string[]
set keywords(
value):void
Gets or sets the list of document keywords, or subjects. Maps to Dublin Core 'subject' property.
string[]
void
get languages():
string[]
Gets or sets the list of document languages. Maps to Dublin Core 'language' property.
string[]
set languages(
value):void
Gets or sets the list of document languages. Maps to Dublin Core 'language' property.
string[]
void
get metadataDate():
Date|null
Gets or sets the metadata date. Maps to XMP 'MetadataDate' property. If null, the current date/time is used.
Date | null
set metadataDate(
value):void
Gets or sets the metadata date. Maps to XMP 'MetadataDate' property. If null, the current date/time is used.
Date | null
void
get modifyDate():
Date|null
Gets or sets the modification date. Maps to XMP 'ModifyDate' property. If null, the current date/time is used.
Date | null
set modifyDate(
value):void
Gets or sets the modification date. Maps to XMP 'ModifyDate' property. If null, the current date/time is used.
Date | null
void
get om():
ObjectManager
Gets the owner ObjectManager instance.
get pdfA():
PdfAConformanceLevel
Gets or sets the PDF/A conformance version.
set pdfA(
value):void
Gets or sets the PDF/A conformance version.
void
get pdfUa():
number|null
Gets or sets the PDF/UA conformance version. Null indicates that the document is not PDF/UA compliant.
number | null
set pdfUa(
value):void
Gets or sets the PDF/UA conformance version. Null indicates that the document is not PDF/UA compliant.
number | null
void
get producer():
string
Gets or sets the document's producer. Maps to PDF 'Producer' property.
string
set producer(
value):void
Gets or sets the document's producer. Maps to PDF 'Producer' property.
string
void
get publishers():
string[]
Gets or sets the list of document publishers. Maps to Dublin Core 'publisher' property.
string[]
set publishers(
value):void
Gets or sets the list of document publishers. Maps to Dublin Core 'publisher' property.
string[]
void
get readOnly():
boolean
Gets or sets a value indicating whether the metadata is marked as read-only.
boolean
set readOnly(
value):void
Gets or sets a value indicating whether the metadata is marked as read-only.
boolean
void
get relations():
string[]
Gets or sets the list of document relations. Maps to Dublin Core 'relation' property.
string[]
set relations(
value):void
Gets or sets the list of document relations. Maps to Dublin Core 'relation' property.
string[]
void
get source():
string
Gets or sets the document source. Maps to Dublin Core 'source' property.
string
set source(
value):void
Gets or sets the document source. Maps to Dublin Core 'source' property.
string
void
get title():
string
Gets or sets the document's title. Maps to Dublin Core 'title' property.
string
set title(
value):void
Gets or sets the document's title. Maps to Dublin Core 'title' property.
string
void
get types():
string[]
Gets or sets the list of document types. Maps to Dublin Core 'type' property.
string[]
set types(
value):void
Gets or sets the list of document types. Maps to Dublin Core 'type' property.
string[]
void
get userProps():
MetadataUserProp[]
Gets or sets the list of document custom properties.
set userProps(
props):void
Gets or sets the list of document custom properties.
void
addProperty(
namespace,name,value):void
Adds a property to metadata.
The XML namespace.
string
The property name.
string
The property value.
void
free():
void
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(
omTo):void
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void