Click or drag to resize
Pdftools logo

MetadataCreate Method

Create a new metadata object

The newly created metadata object is associated with the target document but not (yet) used as the document metadata. The object can be used either as document metadata using Metadata or as page metadata using Metadata.

Namespace: PdfTools.FourHeights.PdfToolbox.Pdf
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public static Metadata Create(
	Document targetDocument,
	Stream xmp
)

Parameters

targetDocument  Document
the output document with which the returned object is associated
xmp  Stream
A stream containing an XMP file or to create an empty metadata object.

Return Value

Metadata
the newly created metadata object
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument argument has already been closed
ArgumentExceptionif the targetDocument argument is read-only
IOExceptionif the xmp stream could not be read
CorruptExceptionif the xmp stream is corrupt
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif xmp is .
See Also