PdfPageExtensions.AsBytes(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 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
A byte array containing the PDF data, or null if the target is null.