Click or drag to resize

PdfDestinationCreateFitR Method

Create new destination that display the page designated by pageIndex, with its contents magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and top entirely within the window both horizontally and vertically.

Namespace: Patagames.Pdf.Net
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static PdfDestination CreateFitR(
	PdfDocument document,
	int pageIndex,
	float? left = null,
	float? bottom = null,
	float? right = null,
	float? top = null
)

Parameters

document  PdfDocument
Document which contains this destination. Null for remote document.
pageIndex  Int32
The zero-based index of the page to be displayed by this destination.
left  NullableSingle  (Optional)
The x-coordinate of the left edge.
bottom  NullableSingle  (Optional)
The y-coordinate of the bottom edge.
right  NullableSingle  (Optional)
The x-coordinate of the right edge.
top  NullableSingle  (Optional)
The y-coordinate of the top edge.

Return Value

PdfDestination
An instance of the PdfDestination class initialized with the specified parameters.
Remarks

If the required horizontal and vertical magnification factors are different, use the smaller the two, centering the rectangle within the window in the other dimension.

A null value for any of the parameters may result in unpredictable behavior.

See Also