Click or drag to resize

PdfDestinationCreateFit Method

Create new destination that display the page designated by pageIndex, with its contents magnified just enough to fit the entire page within the window both horizontally and vertically.

Namespace: Patagames.Pdf.Net
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 5.1.3
Syntax
public static PdfDestination CreateFit(
	PdfDocument document,
	int pageIndex
)

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.

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 of the two, centering the page within the window in the other dimension.
See Also