Table of Contents

Class XmpMetadata

Namespace
UglyToad.PdfPig.Content
Assembly
UglyToad.PdfPig.dll

Wraps an XML based Extensible Metadata Platform (XMP) document. These XML documents are embedded in PDFs to provide metadata about objects (the entire document, images, etc). They can be present as plain text or encoded/encrypted streams.

public class XmpMetadata
Inheritance
XmpMetadata
Inherited Members

Properties

MetadataStreamToken

The underlying StreamToken for this metadata.

public StreamToken MetadataStreamToken { get; }

Property Value

StreamToken

Methods

GetXDocument()

Gets the metadata stream as an System.Xml.Linq.XDocument.

public XDocument GetXDocument()

Returns

XDocument

The System.Xml.Linq.XDocument for the XMP XML.

GetXmlBytes()

Get the decoded bytes for the metadata stream. This can be interpreted as a sequence of plain-text bytes.

public IReadOnlyList<byte> GetXmlBytes()

Returns

IReadOnlyList<byte>

The bytes for the metadata object with any filters removed.