[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Metadata

Metadata Class

Represents XMP metadata associated with a document.

Implements
Namespace: GrapeCity.Documents.Pdf
Assembly: DS.Documents.Pdf.dll
Syntax
public class Metadata : PdfDictWrapper, IPdfDict
Public Class Metadata
    Inherits PdfDictWrapper
    Implements IPdfDict

Constructors

Name Description
Metadata()

Initializes a new instance of the Metadata class.

Properties

Name Description
Contributors

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

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

Coverage

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

CreateDate

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

CreatorTool

Gets or sets the creator tool, in PDF/A compatible documents this value should be the same as Creator.

Creators

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

Dates

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

Description

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

Doc

Gets the GcPdfDocument owning this object.

Identifier

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

Keywords

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

Languages

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

MetadataDate

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

ModifyDate

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

PdfA

Gets or sets the PDF/A conformance version.

PdfUa

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

Producer

Gets or sets the document's producer. Maps to PDF 'Producer' property. The default is the versioned name of the GcPdf library.

Publishers

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

ReadOnly

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

Relations

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

Source

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

Title

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

Types

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

UserProps

Gets the list of document custom properties.

Note that the order of elements in the collection may change after saving and loading the document, this is due to the specifics of how properties are stored in the document, see the PDF specification for details.

Methods

Name Description
AddProperty(string, string, string)

Adds a property to metadata. Note that only allowed namespaces are:

"http://purl.org/dc/elements/1.1/" (Dublin Core Properties)

"http://ns.adobe.com/xap/1.0/" (XMP Core Properties)

"http://ns.adobe.com/pdf/1.3/" (PDF Properties)

Trying to add a property with another namespace will throw an exception.
FormatUTC(DateTime, bool)

Formats a DateTime value for writing to metadata.

GetStream()

Gets the content of the current metadata as a Stream.

GetXmlDocument()

Gets the content of the current metadata as a System.Xml.XmlDocument.

Reset()

Resets values of this Metadata object to default values.

SetStream(Stream)

Sets the content of the current metadata.

SetXmlDocument(XmlDocument)

Sets the content of the current metadata.

Extension Methods