interop::PdfCreateRenderer function (windows.data.pdf.interop.h)
Gets an instance of the IPdfRendererNative interface for displaying a single page of a Portable Document Format (PDF) file.
Syntax
HRESULT PdfCreateRenderer(
[in] IDXGIDevice *pDevice,
[out] IPdfRendererNative **ppRenderer
);
Parameters
[in] pDevice
An instance of a Microsoft DirectX Graphics Infrastructure (DXGI) object that is used for producing image data.
[out] ppRenderer
An instance of the high-performance IPdfRendererNative interface for rendering PDF content on a DirectX surface.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
The function call succeeded. |
Remarks
This function is specifically designed for DirectX apps that use C++ and Extensible Application Markup Language (XAML).
The PdfCreateRenderer function should be called to display single pages of a PDF file, one at a time. While you could call this function in parallel to display multiple pages at the same time, this could lead to unexpected results.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | windows.data.pdf.interop.h |
Library | Windows.data.pdf.lib |
DLL | Windows.Data.Pdf.dll |