Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Windows.Data.Pdf Namespace

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.

Contains classes for converting a page in a Portable Document Format (PDF) document to an image file.

Classes

Name Description
PdfDocument

Represents a Portable Document Format (PDF) document.

PdfPage

Represents a single page in a Portable Document Format (PDF) document.

PdfPageDimensions

Represents the dimensions of a single page in a Portable Document Format (PDF) document.

PdfPageRenderOptions

Represents display settings for a single page of a Portable Document Format (PDF) document, such as the page's background color and its encoding type.

Enums

Name Description
PdfPageRotation

Specifies the number of degrees that a page in a Portable Document Format (PDF) document is rotated in the rendered output.

Remarks

We recommend using the following API for these types of apps:

  • Use the RenderToStreamAsync method if your UWP app:

    • Uses JavaScript and HTML.
    • Uses C# and Extensible Application Markup Language (XAML), and you're not comfortable writing an interop layer over the corresponding Component Object Model (COM) API RenderPageToSurface or RenderPageToDeviceContext by using C++.
  • Use the corresponding Component Object Model (COM) API RenderPageToSurface or RenderPageToDeviceContext if your UWP app:

    • Uses C++ and XAML.
    • Uses C++ and Microsoft DirectX.
    • Uses C# and XAML, and you are comfortable writing an interop layer over these corresponding Component Object Model (COM) API by using C++.
    • Needs to support a zoom factor of greater than 400%.

See also


Feedback

Was this page helpful?