interop::PdfCreateRenderer function

Gets an instance of the IPdfRendererNative interface for displaying a single page of a Portable Document Format (PDF) file.

Syntax

HRESULT PdfCreateRenderer(
  IDXGIDevice        *pDevice,
  IPdfRendererNative **ppRenderer
);

Parameters

pDevice

An instance of a Microsoft DirectX Graphics Infrastructure (DXGI) object that is used for producing image data.

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
S_OK
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

   
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