PdfCreateRenderer function

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

Syntax


HRESULT WINAPI PdfCreateRenderer(
  _In_  IDXGIDevice        *pDevice,
  _Out_ IPdfRendererNative **ppRenderer
);

Parameters

pDevice [in]

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

ppRenderer [out]

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

The function call succeeded.

 

Error codes

For a list of possible error codes that this function can return, see d2derr.h.

Error codes

For a list of possible error codes that this function can return, see d2derr.h.

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 | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]

Header

Windows.data.pdf.interop.h

Library

Windows.data.pdf.lib

DLL

Windows.Data.Pdf.dll

 

 

Show: