PdfPageExtensions.AsStream(IPdfPage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a PDF page to a memory stream.
public:
[System::Runtime::CompilerServices::Extension]
static System::IO::Stream ^ AsStream(Microsoft::Maui::Graphics::IPdfPage ^ target);
public static System.IO.Stream AsStream(this Microsoft.Maui.Graphics.IPdfPage target);
static member AsStream : Microsoft.Maui.Graphics.IPdfPage -> System.IO.Stream
<Extension()>
Public Function AsStream (target As IPdfPage) As Stream
Parameters
- target
- IPdfPage
The PDF page to convert.
Returns
A memory stream containing the PDF data, with position set to the beginning, or null if the target is null.