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

public Class PDActionThread

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

This represents a thread action that can be executed in a PDF document.
Author
Evgeniy Muravitskiy

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
PDActionThread()

Default constructor.

public
PDActionThread(COSDictionary
The action dictionary.
a
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public COSBase

Returns:

The B entry of the specific thread action dictionary.
getB
()

public COSBase

Returns:

The D entry of the specific thread action dictionary.
getD
()

public PDFileSpecification

Returns:

The F entry of the specific thread action dictionary.
getFile
()

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

public void
setB(COSBase
The destination.
b
)

public void
setD(COSBase
The destination.
d
)

public void
setFile(PDFileSpecification
The file specification.
fs
)

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

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

PDActionThreadback to summary
public PDActionThread()

Default constructor.

PDActionThreadback to summary
public PDActionThread(COSDictionary a)

Constructor.

Parameters
a:COSDictionary

The action dictionary.

Method Detail

getBback to summary
public COSBase getB()
Returns:COSBase

The B entry of the specific thread action dictionary.

getDback to summary
public COSBase getD()
Returns:COSBase

The D entry of the specific thread 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 thread action dictionary.

Exceptions
IOException:
If there is an error creating the file spec.
setBback to summary
public void setB(COSBase b)
Parameters
b:COSBase

The destination.

setDback to summary
public void setD(COSBase d)
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.