code: public void listAnyObject(PdfObject object)
      {
          switch (object.type()) {
          case PdfObject.ARRAY:
              listArray((PdfArray)object);
              break;
          case PdfObject.DICTIONARY:
              listDict((PdfDictionary) object);
              break;
          case PdfObject.STRING:
              out.println("(" + object.toString() + ")");
              break;
          default:
              out.println(object.toString());
              break;
          }
      }
docs: Visualizes a PDF object.
  @param object	a com.lowagie.text.pdf object