code: public PdfIndirectReference getReference() throws IOException {
          if (ref != null)
              return ref;
          ref = writer.addToBody(this).getIndirectReference();
          return ref;
      }
docs: Gets the indirect reference to this file specification.
  Multiple invocations will retrieve the same value.
  @throws IOException on error
  @return the indirect reference