Windows.Data.Pdf Namespace

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

Classes

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

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