PDF_RENDER_PARAMS structure (windows.data.pdf.interop.h)

Represents a set of properties for outputting a single page of a Portable Document Format (PDF) file.

Syntax

typedef struct PDF_RENDER_PARAMS {
  D2D_RECT_F  SourceRect;
  UINT32      DestinationWidth;
  UINT32      DestinationHeight;
  D2D_COLOR_F BackgroundColor;
  BOOLEAN     IgnoreHighContrast;
} PDF_RENDER_PARAMS;

Members

SourceRect

Outputs a rectangular portion of the original page, as defined by the D2D_RECT_F structure's upper-left and lower-right corner x- and y-coordinates. The default value is 0.f for all coordinates.

DestinationWidth

Outputs the page at the specified width. The default is 0.f.

DestinationHeight

Outputs the page at the specified height. The default is 0.f.

BackgroundColor

Outputs the page with the specified background color. The default is {1.f, 1.f, 1.f, 1.f}, which represents the values 1.0 for red, green, blue, and alpha channel, respectively. These values, taken together, represent white at full opacity.

IgnoreHighContrast

False to use the system's high contrast display settings; otherwise true. The default is true.

Remarks

This structure is used by the RenderPageToDeviceContext and RenderPageToSurface methods.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [UWP apps only]
Minimum supported server Windows Server 2012 R2 [UWP apps only]
Header windows.data.pdf.interop.h