DsPdfJS API - v9.1.0
    Preparing search index...

    Class Metadata

    Represents XMP metadata associated with a PDF document.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get contributors(): string[]

      Gets or sets the list of document contributors. Maps to Dublin Core 'contributor' property.

      Returns string[]

    • set contributors(value: string[]): void

      Gets or sets the list of document contributors. Maps to Dublin Core 'contributor' property.

      Parameters

      • value: string[]

      Returns void

    • Gets or sets the document copyright. Maps to Dublin Core 'rights' property.

      Returns string

    • Gets or sets the document copyright. Maps to Dublin Core 'rights' property.

      Parameters

      • value: string

      Returns void

    • get coverage(): string

      Gets or sets the document coverage. Maps to Dublin Core 'coverage' property.

      Returns string

    • set coverage(value: string): void

      Gets or sets the document coverage. Maps to Dublin Core 'coverage' property.

      Parameters

      • value: string

      Returns void

    • get createDate(): Date | null

      Gets or sets the creation date. Maps to XMP 'CreateDate' property. If null, the current date/time is used.

      Returns Date | null

    • set createDate(value: Date | null): void

      Gets or sets the creation date. Maps to XMP 'CreateDate' property. If null, the current date/time is used.

      Parameters

      • value: Date | null

      Returns void

    • get creators(): string[]

      Gets or sets the list of document creators. Maps to Dublin Core 'creator' property.

      Returns string[]

    • set creators(value: string[]): void

      Gets or sets the list of document creators. Maps to Dublin Core 'creator' property.

      Parameters

      • value: string[]

      Returns void

    • get creatorTool(): string

      Gets or sets the creator tool. In PDF/A compatible documents this value should be the same as DocumentInfo.creator.

      Returns string

    • set creatorTool(value: string): void

      Gets or sets the creator tool. In PDF/A compatible documents this value should be the same as DocumentInfo.creator.

      Parameters

      • value: string

      Returns void

    • get dates(): string[]

      Gets or sets the list of document dates. Maps to Dublin Core 'date' property.

      Returns string[]

    • set dates(value: string[]): void

      Gets or sets the list of document dates. Maps to Dublin Core 'date' property.

      Parameters

      • value: string[]

      Returns void

    • get description(): string

      Gets or sets the document description. Maps to Dublin Core 'description' property.

      Returns string

    • set description(value: string): void

      Gets or sets the document description. Maps to Dublin Core 'description' property.

      Parameters

      • value: string

      Returns void

    • get id(): number

      Gets the reference to the object.

      Returns number

    • get identifier(): string

      Gets or sets the document identifier. Maps to Dublin Core 'identifier' property.

      Returns string

    • set identifier(value: string): void

      Gets or sets the document identifier. Maps to Dublin Core 'identifier' property.

      Parameters

      • value: string

      Returns void

    • get keywords(): string[]

      Gets or sets the list of document keywords, or subjects. Maps to Dublin Core 'subject' property.

      Returns string[]

    • set keywords(value: string[]): void

      Gets or sets the list of document keywords, or subjects. Maps to Dublin Core 'subject' property.

      Parameters

      • value: string[]

      Returns void

    • get languages(): string[]

      Gets or sets the list of document languages. Maps to Dublin Core 'language' property.

      Returns string[]

    • set languages(value: string[]): void

      Gets or sets the list of document languages. Maps to Dublin Core 'language' property.

      Parameters

      • value: string[]

      Returns void

    • get metadataDate(): Date | null

      Gets or sets the metadata date. Maps to XMP 'MetadataDate' property. If null, the current date/time is used.

      Returns Date | null

    • set metadataDate(value: Date | null): void

      Gets or sets the metadata date. Maps to XMP 'MetadataDate' property. If null, the current date/time is used.

      Parameters

      • value: Date | null

      Returns void

    • get modifyDate(): Date | null

      Gets or sets the modification date. Maps to XMP 'ModifyDate' property. If null, the current date/time is used.

      Returns Date | null

    • set modifyDate(value: Date | null): void

      Gets or sets the modification date. Maps to XMP 'ModifyDate' property. If null, the current date/time is used.

      Parameters

      • value: Date | null

      Returns void

    • get pdfUa(): number | null

      Gets or sets the PDF/UA conformance version. Null indicates that the document is not PDF/UA compliant.

      Returns number | null

    • set pdfUa(value: number | null): void

      Gets or sets the PDF/UA conformance version. Null indicates that the document is not PDF/UA compliant.

      Parameters

      • value: number | null

      Returns void

    • get producer(): string

      Gets or sets the document's producer. Maps to PDF 'Producer' property.

      Returns string

    • set producer(value: string): void

      Gets or sets the document's producer. Maps to PDF 'Producer' property.

      Parameters

      • value: string

      Returns void

    • get publishers(): string[]

      Gets or sets the list of document publishers. Maps to Dublin Core 'publisher' property.

      Returns string[]

    • set publishers(value: string[]): void

      Gets or sets the list of document publishers. Maps to Dublin Core 'publisher' property.

      Parameters

      • value: string[]

      Returns void

    • get readOnly(): boolean

      Gets or sets a value indicating whether the metadata is marked as read-only.

      Returns boolean

    • set readOnly(value: boolean): void

      Gets or sets a value indicating whether the metadata is marked as read-only.

      Parameters

      • value: boolean

      Returns void

    • get relations(): string[]

      Gets or sets the list of document relations. Maps to Dublin Core 'relation' property.

      Returns string[]

    • set relations(value: string[]): void

      Gets or sets the list of document relations. Maps to Dublin Core 'relation' property.

      Parameters

      • value: string[]

      Returns void

    • get source(): string

      Gets or sets the document source. Maps to Dublin Core 'source' property.

      Returns string

    • set source(value: string): void

      Gets or sets the document source. Maps to Dublin Core 'source' property.

      Parameters

      • value: string

      Returns void

    • get title(): string

      Gets or sets the document's title. Maps to Dublin Core 'title' property.

      Returns string

    • set title(value: string): void

      Gets or sets the document's title. Maps to Dublin Core 'title' property.

      Parameters

      • value: string

      Returns void

    • get types(): string[]

      Gets or sets the list of document types. Maps to Dublin Core 'type' property.

      Returns string[]

    • set types(value: string[]): void

      Gets or sets the list of document types. Maps to Dublin Core 'type' property.

      Parameters

      • value: string[]

      Returns void

    Methods

    • Adds a property to metadata.

      Parameters

      • namespace: UserPropNamespace

        The XML namespace.

      • name: string

        The property name.

      • value: string

        The property value.

      Returns void

    • Detaches the object from the ObjectManager and deallocates its memory, if possible.

      Returns void