XmpMetadata.Extract Method (String, Stream)

Note: This API is now obsolete.

Extracts XMP metadata from PDF document to the stream.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
[ObsoleteAttribute("This method is obsolete and will be removed in the next version of the library. Please open document explicitly and use one of the Save methods instead.")]
public static void Extract(
	string documentPath,
	Stream outputStream
)
VB
<ObsoleteAttribute("This method is obsolete and will be removed in the next version of the library. Please open document explicitly and use one of the Save methods instead.")>
Public Shared Sub Extract ( 
	documentPath As String,
	outputStream As Stream
)

Parameters

documentPath
Type: System.String
Path to the PDF document.
outputStream
Type: System.IO.Stream
The stream to save XMP metadata.

Remarks

The outputStream must be a stream that supports writing. Otherwise, the method throws an exception of PdfException type.

See Also