Package com.reportmill.pdf
Class PDFXTable
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.pdf.PDFXTable
- All Implemented Interfaces:
RMArchiver.Archiving
,Cloneable
This class represents a cross reference table in a PDF file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an object and returns the string by which the object can be referenced inside the pdf file.Adds an object and returns the string by which the object can be referenced inside the pdf file.getEntry
(int anIndex) Returns the specific entry at the given index.int
Returns the number of entries in xref table.getRefString
(int index) Returns a reference string for the entry object at the given index.getRefString
(Object anObj) Returns a reference string for the given entry object.getRefStringForName
(String aName) Returns a reference string for the given entry object name.int
indexOfEntry
(Object obj) Returns the index of a given entry object.void
setNameForObject
(String aName, Object anObj) Sets the name for a given entry object.Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Constructor Details
-
PDFXTable
public PDFXTable()Creates an empty xref table.
-
-
Method Details
-
getEntryCount
public int getEntryCount()Returns the number of entries in xref table. -
getEntry
Returns the specific entry at the given index. -
addObject
Adds an object and returns the string by which the object can be referenced inside the pdf file. -
addObject
Adds an object and returns the string by which the object can be referenced inside the pdf file. -
indexOfEntry
Returns the index of a given entry object. -
setNameForObject
Sets the name for a given entry object. -
getRefString
Returns a reference string for the entry object at the given index.- Throws:
RMException
-
getRefString
Returns a reference string for the given entry object.- Throws:
RMException
-
getRefStringForName
Returns a reference string for the given entry object name.
-