Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Outputs a single page of a Portable Document Format (PDF) file as a bitmap image.
Syntax
HRESULT RenderPageToDeviceContext(
[in] IUnknown *pdfPage,
[in] ID2D1DeviceContext *pD2DDeviceContext,
[in, optional] PDF_RENDER_PARAMS *pRenderParams
);
Parameters
[in] pdfPage
The IPdfPage interface as an instance of the PdfPage class type-casted to the IUnknown interface, page.as<IUnknown>().get(), representing the page to be output.
[in] pD2DDeviceContext
A set of state and command buffers for outputting the page as a bitmap image.
[in, optional] pRenderParams
A set of page output properties, such as rendering only a portion of the page, rendering a scaled version of the page, setting the page's background color, and whether the page is shown in high contrast mode.
Provide a null pointer for this parameter to specify default page output properties. For the list of defaults, see PDF_RENDER_PARAMS.
Return value
This method can return one of these values.
| Return code | Description |
|---|---|
|
The page output operation succeeded. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8.1 [UWP apps only] |
| Minimum supported server | Windows Server 2012 R2 [UWP apps only] |
| Target Platform | Windows |
| Header | windows.data.pdf.interop.h |
| Library | Windows.data.pdf.lib |
| DLL | Windows.Data.Pdf.dll |