XmpMetadata.Extract Method (Stream, String)

Note: This API is now obsolete.

Extracts XMP metadata from PDF document to the file.

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,
	string outputPath
)
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,
	outputPath As String
)

Parameters

documentStream
Type: System.IO.Stream
Stream with the PDF document.
outputPath
Type: System.String
Path to the file to save XMP metadata to.

Remarks

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

See Also