code: public void open() {
  		if (!close) {
              open = true;
          }
          DocListener listener;
  		for (Iterator iterator = listeners.iterator(); iterator.hasNext();) {
              listener = (DocListener) iterator.next();
              listener.setPageSize(pageSize);
  			listener.setMargins(marginLeft, marginRight, marginTop,
  					marginBottom);
              listener.open();
          }
      }
docs: Opens the document.
  <P>
  Once the document is opened, you can't write any Header- or
  Meta-information anymore. You have to open the document before you can
  begin to add content to the body of the document.