officefileapi-devexpress-dot-pdf-dot-xmp-dot-xmpdocument-dot-fromstream-x28-system-dot-io-dot-stream-x29.md
Creates an XmpDocument object from the specified stream.
Namespace : DevExpress.Pdf.Xmp
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public static XmpDocument FromStream(
Stream xmlStream
)
Public Shared Function FromStream(
xmlStream As Stream
) As XmpDocument
| Name | Type | Description |
|---|---|---|
| xmlStream | Stream |
A stream that contains the data for the XmpDocument object.
|
| Type | Description |
|---|---|
| XmpDocument |
The resulting XmpDocument object.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FromStream(Stream) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
pdf-document-api-xmp-example/CS/XmpMetadataExamples/Program.cs#L118
{
metadata = XmpDocument.FromStream(xmlStream);
pdfDocumentProcessor.Document.SetMetadata(metadata);
pdf-document-api-xmp-example/VB/XmpMetadataExamples/Program.vb#L93
Using xmlStream As FileStream = New FileStream("Documents//metadata_new.xml", FileMode.Open, FileAccess.Read)
metadata = XmpDocument.FromStream(xmlStream)
pdfDocumentProcessor.Document.SetMetadata(metadata)
See Also