GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfGoToPageViewAction Class

    Namespace:
    GemBox.Pdf.Actions
    Assembly:
    GemBox.Pdf.dll

    A go-to action changes the view to a specified destination (page, location, and magnification factor).

    • C#
    • VB.NET
    public sealed class PdfGoToPageViewAction : PdfAction
    Public NotInheritable Class PdfGoToPageViewAction
        Inherits PdfAction
    Inheritance:
    System.Object
    PdfObject
    PdfAction
    PdfGoToPageViewAction
    Remarks

    Specifying a go-to action in the A entry of a link annotation or outline item has the same effect as specifying the destination directly with the Dest entry.

    Properties

    ActionType

    Gets the GoToPageView value.

    • C#
    • VB.NET
    public override PdfActionType ActionType { get; }
    Public Overrides ReadOnly Property ActionType As PdfActionType
    Property Value
    PdfActionType

    The GoToPageView value.

    Overrides
    PdfAction.ActionType

    Destination

    (Required) The destination to jump to (see 12.3.2, "Destinations").

    • C#
    • VB.NET
    public PdfDestination Destination { get; set; }
    Public Property Destination As PdfDestination
    Property Value
    PdfDestination

    The destination to jump to.

    Exceptions
    System.ArgumentNullException

    Value is null.

    See Also
    PDF Specification ISO 32000-1:2008, section '12.3.2 Destinations'

    DestinationName

    (Required) The named destination to jump to (see 12.3.2.3, "Named Destinations").

    • C#
    • VB.NET
    public string DestinationName { get; set; }
    Public Property DestinationName As String
    Property Value
    System.String

    The named destination to jump to.

    Exceptions
    System.ArgumentNullException

    Value is null.

    See Also
    PDF Specification ISO 32000-1:2008, section '12.3.2.3 Named Destinations'

    Methods

    SetDestination(PdfPage, PdfDestinationViewType, Nullable<Double>[])

    Sets the explicit destination to jump to (see 12.3.2.2, "Explicit Destinations").

    parameters represent the following values depending on the viewType parameter:

    • FitRectangle

      Left, Bottom, Right and Top.

    • LeftTopZoom

      Left, Top and Zoom.

    • FitPageVertical and FitContentVertical Left.
    • FitPageHorizontal and FitContentHorizontal Top.
    • FitPage and FitContentNone.

    • C#
    • VB.NET
    public PdfDestination SetDestination(PdfPage page, PdfDestinationViewType viewType, params double? [] parameters)
    Public Function SetDestination(page As PdfPage, viewType As PdfDestinationViewType, ParamArray parameters As Double?()) As PdfDestination
    Parameters
    page
    PdfPage

    The page to jump to.

    viewType
    PdfDestinationViewType

    Type of the view.

    parameters
    System.Nullable<System.Double>[]

    The parameters of the view.

    Returns
    PdfDestination

    The explicit destination to jump to.

    See Also
    PDF Specification ISO 32000-1:2008, section '12.3.2.2 Explicit Destinations'

    Inherited Properties

    Metadata

    (Optional; PDF 1.4) A metadata stream containing metadata for the component.

    (Inherited from PdfObject)

    Extension Methods

    PdfObjectExtensions.GetDictionary(PdfObject)
    PdfObjectExtensions.GetOrAddDictionary(PdfObject)
    PdfObjectExtensions.GetArray(PdfObject)

    See Also

    PDF Specification ISO 32000-1:2008, section '12.6.4.2 Go-To Actions'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.