Click or drag to resize
Pdftools logo

LocationZoomDestinationCreate Method

Create a new LocationZoomDestination

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

Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.Navigation
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public static LocationZoomDestination Create(
	Document targetDocument,
	Page page,
	double? left,
	double? top,
	double? zoom
)

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.
left  NullableDouble

The location of the page that is displayed at the left border of the viewport or .

See property Left for more information.

top  NullableDouble

The location of the page that is displayed at the top of the viewport or .

See property Top for more information.

zoom  NullableDouble

The zoom factor that is applied when jumping to the destination or .

See property Zoom for more information.

Return Value

LocationZoomDestination
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