Table of Contents

Method SetMetadata

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

SetMetadata(byte[])

Replaces the stream content with the specified byte array.

public void SetMetadata(byte[] xml)

Parameters

xml byte[]

SetMetadata(string)

Sets the metadata stream.
The begin attribute of the “<?xpacket begin="{BOM}"” header, in double or single quotes, may be empty, hold the byte order mark U+FEFF, or name the encoding as ToString writes it, such as 'UTF8'.

public void SetMetadata(string xml)

Parameters

xml string