Share via


PdfPageExtensions.AsStream(IPdfPage) Method

Definition

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.

Applies to