Package com.itextpdf.kernel.pdf 
      
 
      Class PdfXrefTable
 java.lang.Object 
      
 
     
        com.itextpdf.kernel.pdf.PdfXrefTable 
      
 
     
        A representation of a cross-referenced table of a PDF document. 
      
 
     -  
        Constructor SummaryConstructorsConstructorDescriptionCreates aPdfXrefTablewhich will be used to store xref structure of the pdf document.PdfXrefTable(int capacity) Creates aPdfXrefTablewhich will be used to store xref structure of the pdf document.PdfXrefTable(int capacity, MemoryLimitsAwareHandler memoryLimitsAwareHandler) Creates aPdfXrefTablewhich will be used to store xref structure of the pdf document.PdfXrefTable(MemoryLimitsAwareHandler memoryLimitsAwareHandler) Creates aPdfXrefTablewhich will be used to store xref structure of the pdf document.
-  
        Method SummaryModifier and TypeMethodDescriptionadd(PdfIndirectReference reference) Adds indirect reference to list of indirect objects.protected PdfIndirectReferencecreateNextIndirectReference(PdfDocument document) Creates next available indirect reference.protected voidfreeReference(PdfIndirectReference reference) Set the reference to free state.get(int index) Get appropriate reference to indirect object.protected intGets the capacity of xref stream.intCalculates a number of stored references to indirect objects.protected voidsetCapacity(int capacity) Increase capacity of the array of indirect references.voidsetMemoryLimitsAwareHandler(MemoryLimitsAwareHandler memoryLimitsAwareHandler) Sets customMemoryLimitsAwareHandler.intsize()Get size of cross-reference table.protected static voidwriteKeyInfo(PdfDocument document) Convenience method to write the fingerprint preceding the trailer.protected voidwriteXrefTableAndTrailer(PdfDocument document, PdfObject fileId, PdfObject crypto) Writes cross reference table and trailer to PDF.
-  
        Constructor Details-  
           PdfXrefTablepublic PdfXrefTable()Creates aPdfXrefTablewhich will be used to store xref structure of the pdf document. Capacity andMemoryLimitsAwareHandlerinstance would be set by default values.
-  
           PdfXrefTablepublic PdfXrefTable(int capacity) Creates aPdfXrefTablewhich will be used to store xref structure of the pdf document.- Parameters:
-  capacity- initial capacity of xref table.
 
-  
           PdfXrefTableCreates aPdfXrefTablewhich will be used to store xref structure of the pdf document.- Parameters:
-  memoryLimitsAwareHandler- customMemoryLimitsAwareHandlerto set.
 
-  
           PdfXrefTableCreates aPdfXrefTablewhich will be used to store xref structure of the pdf document.- Parameters:
-  capacity- initial capacity of xref table.
-  memoryLimitsAwareHandler- memoryLimitsAwareHandler customMemoryLimitsAwareHandlerto set.
 
 
-  
           
-  
        Method Details-  
           setMemoryLimitsAwareHandlerSets customMemoryLimitsAwareHandler.- Parameters:
-  memoryLimitsAwareHandler- instance to set.
 
-  
           addAdds indirect reference to list of indirect objects.- Parameters:
-  reference- indirect reference to add.
- Returns:
- reference from param
 
-  
           sizepublic int size()Get size of cross-reference table.- Returns:
- amount of lines including zero-object
 
-  
           getCountOfIndirectObjectspublic int getCountOfIndirectObjects()Calculates a number of stored references to indirect objects.- Returns:
- number of indirect objects
 
-  
           getGet appropriate reference to indirect object.- Parameters:
-  index- is the index of required object
- Returns:
- reference to object with the provided index
 
-  
           writeKeyInfoConvenience method to write the fingerprint preceding the trailer. The fingerprint contains information on iText products used in the generation or manipulation of an outputted PDF file.- Parameters:
-  document- pdfDocument to write the fingerprint to
 
-  
           createNextIndirectReferenceCreates next available indirect reference.- Parameters:
-  document- is the currentdocument
- Returns:
- created indirect reference.
 
-  
           freeReferenceSet the reference to free state.- Parameters:
-  reference- is a reference to be updated.
 
-  
           getCapacityprotected int getCapacity()Gets the capacity of xref stream.- Returns:
- the capacity of xref stream.
 
-  
           setCapacityprotected void setCapacity(int capacity) Increase capacity of the array of indirect references.- Parameters:
-  capacity- is a new capacity to set
 
-  
           writeXrefTableAndTrailerprotected void writeXrefTableAndTrailer(PdfDocument document, PdfObject fileId, PdfObject crypto) throws IOException Writes cross reference table and trailer to PDF.- Parameters:
-  document- is the currentdocument
-  fileId- field id
-  crypto- pdf encryption
- Throws:
-  IOException- if any I/O error occurs
 
 
-