org.pdfbox.pdmodel.interactive.pagenavigation
Class PDThread
java.lang.Object
org.pdfbox.pdmodel.interactive.pagenavigation.PDThread
- COSObjectable
public class PDThread
extends java.lang.Object
This a single thread in a PDF document.
PDThread
public PDThread()
Default constructor.
PDThread
public PDThread(COSDictionary t)
Constructor that is used for a preexisting dictionary.
t
- The underlying dictionary.
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.
- getCOSObject in interface COSObjectable
- The cos object that matches this Java object.
getDictionary
public COSDictionary getDictionary()
This will get the underlying dictionary that this object wraps.
- The underlying info dictionary.
getFirstBead
public PDThreadBead getFirstBead()
Get the first bead in the thread, or null if it has not been set yet. This
is a required field for this object.
- The first bead in the thread.
getThreadInfo
public PDDocumentInformation getThreadInfo()
Get info about the thread, or null if there is nothing.
setFirstBead
public void setFirstBead(PDThreadBead bead)
This will set the first bead in the thread. When this is set it will
also set the thread property of the bead object.
bead
- The first bead in the thread.
setThreadInfo
public void setThreadInfo(PDDocumentInformation info)
Set the thread info, can be null.
info
- The info dictionary about this thread.