Click or drag to resize
Pdftools logo

FitRectangleDestination Class

A destination that fits a specified area of a page into the viewport.

Note: Many PDF viewers support different viewing modes like "fit page" or "fit width". A FitRectangleDestination will change the current viewing mode to standard mode in those viewers, i.e. deactivate any special mode like "fit page" or "fit width".

Changing the viewing mode is usually not very well received by users and thus a LocationZoomDestination should be preferred in most cases.

Inheritance Hierarchy

Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.Navigation
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public class FitRectangleDestination : DirectDestination

The FitRectangleDestination type exposes the following members.

Properties
 NameDescription
Public propertyPage The page in the document that this destination is pointing to.
(Inherited from DirectDestination)
Public propertyRectangle The rectangle that is displayed in the viewport.
Public propertyTarget

The target destination

For direct destinations, this is just the destination itself.
(Inherited from Destination)
Top
Methods
 NameDescription
Public methodStatic memberCreate

Create a new FitRectangleDestination

The returned object is not yet used on any page, but it is associated with the given target document.
Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Top
See Also