Class XmpMetadata
Represents XMP metadata of the document.
Inheritance
Inherited Members
Namespace: Syncfusion.Pdf.Xmp
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class XmpMetadata : IPdfWrapper
Constructors
XmpMetadata(PdfDocumentInformation)
Initializes a new instance of the XmpMetadata class.
Declaration
public XmpMetadata(PdfDocumentInformation documentInfo)
Parameters
Type | Name | Description |
---|---|---|
PdfDocumentInformation | documentInfo |
XmpMetadata(XmlDocument)
Initializes a new instance of the XmpMetadata class.
Declaration
public XmpMetadata(XmlDocument xmp)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | xmp | The XMP. |
Fields
c_customSchema
Uri of the Custom Schema namespace
Declaration
protected const string c_customSchema = "http://ns.adobe.com/pdfx/1.3/"
Field Value
Type |
---|
System.String |
c_dublinSchema
Uri of the Dublin Core schema namespace.
Declaration
protected const string c_dublinSchema = "http://purl.org/dc/elements/1.1/"
Field Value
Type |
---|
System.String |
c_pdfschema
Uri of the Adobe PDF schema namespace.
Declaration
protected const string c_pdfschema = "http://ns.adobe.com/pdf/1.3/"
Field Value
Type |
---|
System.String |
c_rdfPdfa
Uri of the Resource Description Framework PDF/A namespace.
Declaration
protected const string c_rdfPdfa = "http://www.aiim.org/pdfa/ns/id/"
Field Value
Type |
---|
System.String |
c_rdfPrefix
Prefix of the PDF namespace.
Declaration
protected const string c_rdfPrefix = "rdf"
Field Value
Type |
---|
System.String |
c_rdfUri
Uri of the Resource Description Framework namespace.
Declaration
protected const string c_rdfUri = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
Field Value
Type |
---|
System.String |
c_xap
Uri of the Extensible Authoring Publishing namespace.
Declaration
protected const string c_xap = "http://ns.adobe.com/xap/1.0/"
Field Value
Type |
---|
System.String |
c_xmlnsPrefix
Extensible Markup Language Namespace prefix.
Declaration
protected const string c_xmlnsPrefix = "xmlns"
Field Value
Type |
---|
System.String |
c_xmlnsUri
Namespace unique resource identifier for the xmlns attribute.
Declaration
protected const string c_xmlnsUri = "http://www.w3.org/2000/xmlns/"
Field Value
Type |
---|
System.String |
c_xmlPefix
Xml prefix.
Declaration
protected const string c_xmlPefix = "xml"
Field Value
Type |
---|
System.String |
c_xmlUri
Namespace uri for the xml namespace.
Declaration
protected const string c_xmlUri = "http://www.w3.org/XML/1998/namespace"
Field Value
Type |
---|
System.String |
c_xpathRdf
Xpath for the RDF element.
Declaration
protected const string c_xpathRdf = "/x:xmpmeta/rdf:RDF"
Field Value
Type |
---|
System.String |
Properties
BasicJobTicketSchema
Gets Basic Job Ticket Schema.
Declaration
public BasicJobTicketSchema BasicJobTicketSchema { get; }
Property Value
Type |
---|
BasicJobTicketSchema |
BasicSchema
Gets Basic Schema.
Declaration
public BasicSchema BasicSchema { get; }
Property Value
Type |
---|
BasicSchema |
DublinCoreSchema
Gets Dublin Core Schema.
Declaration
public DublinCoreSchema DublinCoreSchema { get; }
Property Value
Type |
---|
DublinCoreSchema |
NamespaceManager
Gets namespace manager of the Xmp metadata.
Declaration
public XmlNamespaceManager NamespaceManager { get; }
Property Value
Type |
---|
System.Xml.XmlNamespaceManager |
PagedTextSchema
Gets Dublin Core Schema.
Declaration
public PagedTextSchema PagedTextSchema { get; }
Property Value
Type |
---|
PagedTextSchema |
PDFSchema
Gets a schema specifying properties used with Adobe PDF documents.
Declaration
public PDFSchema PDFSchema { get; }
Property Value
Type |
---|
PDFSchema |
RightsManagementSchema
Gets Rights Management Schema.
Declaration
public RightsManagementSchema RightsManagementSchema { get; }
Property Value
Type |
---|
RightsManagementSchema |
XmlData
Gets XMP data in XML format.
Declaration
public XmlDocument XmlData { get; }
Property Value
Type |
---|
System.Xml.XmlDocument |
Methods
Add(XmlElement)
Adds schema to the XMP in XML format.
Declaration
public void Add(XmlElement schema)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | schema | XMP schema in XML format. |
Remarks
If XMP already contains such schema - there will be two equal schemas at the xmp.
Load(XmlDocument)
Loads XMP from the XML.
Declaration
public void Load(XmlDocument xmp)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | xmp | XMP data in XMLDocument. |
Remarks
If there was any data in this XMP, it will be replaced by the data from the XML.