| 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.Toolbox.PdfAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.0.0+fdabb036503e9f99735634a6d4f5be875399e9f5
Syntax 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 Exception | Condition |
---|
ArgumentException | if the targetDocument argument has already been closed |
ArgumentException | if the targetDocument argument is read-only |
IOException | if the xmp stream could not be read |
CorruptException | if the xmp stream is corrupt |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if xmp is . |
See Also