Click or drag to resize
Pdftools logo

FitWidthDestinationCreate Method

Create a new FitWidthDestination

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.6+c8104d9b5f50644b2c93d424e62edbf40828fde7
Syntax
C#
public static FitWidthDestination Create(
	Document targetDocument,
	Page page,
	bool fitActualContent
)

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.
fitActualContent  Boolean

If , the viewport is fitted to the actual content of the page, instead of the size of the page.

See property FitActualContent for more information.

Return Value

FitWidthDestination
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