public void dispose() {

    // this.objData=null;
    // this.lastRef=null;

    nameLookup = null;

    // this.fields=null;

    if (objectReader != null) {
      objectReader.dispose();
    }
    objectReader = null;

    if (pageLookup != null) {
      pageLookup.dispose();
    }
    pageLookup = null;
  }
 public void setLookup(final String currentPageOffset, final int tempPageCount) {
   pageLookup.put(currentPageOffset, tempPageCount);
   pagesReferences.put(tempPageCount, currentPageOffset);
 }
  /**
   * given a ref, what is the page
   *
   * @param ref - PDF object reference
   * @return - page number with being first page
   */
  public int convertObjectToPageNumber(final String ref) {

    return pageLookup.convertObjectToPageNumber(ref);
  }