Click or drag to resize
Pdftools logo

FitRectangleDestinationCreate Method

Create a new FitRectangleDestination

The returned object is not yet used on any page, but it is associated with the given target document.

Namespace: PdfTools.Toolbox.Pdf.Navigation
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntax
C#
public static FitRectangleDestination Create(
	Document targetDocument,
	Page page,
	Rectangle rectangle
)

Parameters

targetDocument  Document
The output document with which the returned object is associated
page  Page
The page in the document that this destination is pointing to.
rectangle  Rectangle

The rectangle that is displayed in the viewport.

See property Rectangle for more information.

Return Value

FitRectangleDestination
The newly created destination object.
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument argument has already been closed
ArgumentExceptionif the targetDocument argument is read-only
ArgumentExceptionif the targetDocumentdiffers from the document associated with page
ArgumentExceptionIf the document associated with the page argument has already been closed
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif page is .
See Also