Click or drag to resize
Pdftools logo

FitWidthDestination Class

A destination fits the width of a page into the viewport.

Note: Many PDF viewers support different viewing modes like "fit page" or "fit width". A FitWidthDestination will change the current viewing mode to "fit width" in those viewers.

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: 1.0.0
Syntax
C#
public class FitWidthDestination : DirectDestination

The FitWidthDestination type exposes the following members.

Properties
 NameDescription
Public propertyFitActualContent

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

Note: Many PDF viewers simply ignore this property and always treat it as , i.e. switching to "fit page" mode anyway.

Public propertyPage The page in the document that this destination is pointing to.
(Inherited from DirectDestination)
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 FitWidthDestination

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