Ejemplo n.º 1
0
 /**
  * Stores the next object of the XRef table. As soon as this method returns false, it makes no
  * longer sense calling it as all the objects have been stored.
  *
  * @return false if there are no objects left to check.
  */
 public boolean storeNextObject() {
   while (current < n) {
     current++;
     PdfObject object = reader.getPdfObjectRelease(current);
     if (object != null) {
       int idx = size();
       idxToRef.put(idx, current);
       refToIdx.put(current, idx);
       store(object);
       return true;
     }
   }
   return false;
 }