Share via


PdfPageExtensions.AsBytes(IPdfPage) Method

Definition

Converts a PDF page to a byte array.

public:
[System::Runtime::CompilerServices::Extension]
 static cli::array <System::Byte> ^ AsBytes(Microsoft::Maui::Graphics::IPdfPage ^ target);
public static byte[] AsBytes(this Microsoft.Maui.Graphics.IPdfPage target);
static member AsBytes : Microsoft.Maui.Graphics.IPdfPage -> byte[]
<Extension()>
Public Function AsBytes (target As IPdfPage) As Byte()

Parameters

target
IPdfPage

The PDF page to convert.

Returns

Byte[]

A byte array containing the PDF data, or null if the target is null.

Applies to