Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.interactive.action

public Class PDActionRemoteGoTo

extends PDAction
Class Inheritance
Imports
java.io.IOException, org.apache.pdfbox.cos.COSBase, .COSBoolean, .COSDictionary, .COSName, org.apache.pdfbox.pdmodel.common.filespecification.PDFileSpecification

This represents a remote go-to action that can be executed in a PDF document.
Authors
Ben Litchfield, Panagiotis Toumasis

Field Summary

Modifier and TypeField and Description
public static final String
SUB_TYPE

This type of action this object represents.

Inherited from org.apache.pdfbox.pdmodel.interactive.action.PDAction:
actionTYPE

Constructor Summary

AccessConstructor and Description
public
PDActionRemoteGoTo()

Default constructor.

public
PDActionRemoteGoTo(COSDictionary
The action dictionary.
a
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public COSBase

Returns:

The D entry of the specific remote go-to action dictionary.
getD
()

This will get the destination to jump to.

public PDFileSpecification

Returns:

The F entry of the specific remote go-to action dictionary.
getFile
()

This will get the file in which the destination is located.

public OpenMode

Returns:

A flag specifying how to open the destination document.
getOpenInNewWindow
()

This will specify whether to open the destination document in a new window, in the same window, or behave in accordance with the current user preference.

public void
setD(COSBase
The destination.
d
)

This will set the destination to jump to.

public void
setFile(PDFileSpecification
The file specification.
fs
)

This will set the file in which the destination is located.

public void
setOpenInNewWindow(OpenMode
The flag value.
value
)

This will specify whether to open the destination document in a new window.

Inherited from org.apache.pdfbox.pdmodel.interactive.action.PDAction:
getCOSObjectgetNextgetSubTypegetTypesetNextsetSubTypesetType

Field Detail

SUB_TYPEback to summary
public static final String SUB_TYPE

This type of action this object represents.

Constructor Detail

PDActionRemoteGoToback to summary
public PDActionRemoteGoTo()

Default constructor.

PDActionRemoteGoToback to summary
public PDActionRemoteGoTo(COSDictionary a)

Constructor.

Parameters
a:COSDictionary

The action dictionary.

Method Detail

getDback to summary
public COSBase getD()

This will get the destination to jump to. If the value is an array defining an explicit destination, its first element must be a page number within the remote document rather than an indirect reference to a page object in the current document. The first page is numbered 0.

Returns:COSBase

The D entry of the specific remote go-to action dictionary.

getFileback to summary
public PDFileSpecification getFile() throws IOException

This will get the file in which the destination is located.

Returns:PDFileSpecification

The F entry of the specific remote go-to action dictionary.

Exceptions
IOException:
If there is an error creating the file spec.
getOpenInNewWindowback to summary
public OpenMode getOpenInNewWindow()

This will specify whether to open the destination document in a new window, in the same window, or behave in accordance with the current user preference.

Returns:OpenMode

A flag specifying how to open the destination document.

setDback to summary
public void setD(COSBase d)

This will set the destination to jump to. If the value is an array defining an explicit destination, its first element must be a page number within the remote document rather than an indirect reference to a page object in the current document. The first page is numbered 0.

Parameters
d:COSBase

The destination.

setFileback to summary
public void setFile(PDFileSpecification fs)

This will set the file in which the destination is located.

Parameters
fs:PDFileSpecification

The file specification.

setOpenInNewWindowback to summary
public void setOpenInNewWindow(OpenMode value)

This will specify whether to open the destination document in a new window.

Parameters
value:OpenMode

The flag value.