Class PDFXTable

java.lang.Object
com.reportmill.base.RMObject
com.reportmill.pdf.PDFXTable
All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class PDFXTable extends RMObject
This class represents a cross reference table in a PDF file.
  • 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

      public Object getEntry(int anIndex)
      Returns the specific entry at the given index.
    • addObject

      public String addObject(Object anObj)
      Adds an object and returns the string by which the object can be referenced inside the pdf file.
    • addObject

      public String addObject(Object anObj, boolean definitelyIsNew)
      Adds an object and returns the string by which the object can be referenced inside the pdf file.
    • indexOfEntry

      public int indexOfEntry(Object obj)
      Returns the index of a given entry object.
    • setNameForObject

      public void setNameForObject(String aName, Object anObj)
      Sets the name for a given entry object.
    • getRefString

      public String getRefString(int index) throws RMException
      Returns a reference string for the entry object at the given index.
      Throws:
      RMException
    • getRefString

      public String getRefString(Object anObj) throws RMException
      Returns a reference string for the given entry object.
      Throws:
      RMException
    • getRefStringForName

      public String getRefStringForName(String aName)
      Returns a reference string for the given entry object name.