Click or drag to resize
Pdftools logo

FitPageDestination Class

A destination fits an entire page into the viewport.

Note: Many PDF viewers support different viewing modes like "fit page" or "fit width". A FitPageDestination will change the current viewing mode to "fit page" 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
SystemObject
  PdfTools.Toolbox.InternalNativeBase
    PdfTools.Toolbox.InternalNativeObject
      PdfTools.Toolbox.Pdf.NavigationDestination
        PdfTools.Toolbox.Pdf.NavigationDirectDestination
          PdfTools.Toolbox.Pdf.NavigationFitPageDestination

Namespace: PdfTools.Toolbox.Pdf.Navigation
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.4.0+02318d3e3f9645a1305b87026fb971a660079e54
Syntax
C#
public class FitPageDestination : DirectDestination

The FitPageDestination type exposes the following members.

Properties
 NameDescription
Public propertyFitActualContent

If , the viewport is fitted to the actual content of the page, instead of the size 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 FitPageDestination

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