XmpMetadata.Extract Method (Stream, 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(
	Stream documentStream,
	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 ( 
	documentStream As Stream,
	outputStream As Stream
)

Parameters

documentStream
Type: System.IO.Stream
Stream with the PDF document.
outputStream
Type: System.IO.Stream
The stream to save XMP metadata.

Remarks

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

See Also