code: public void render(OutputStream outputStream, Format format, int dpi) throws PrintingException {
  		try {
  			if (baos == null) {
  				prepare();
  			}
  			writeDocument(outputStream, format, dpi);
  		} catch (Exception e) { // NOSONAR
  			throw new PrintingException(e, PrintingException.DOCUMENT_RENDER_PROBLEM);
  		}
  	}
docs: Renders the document to the specified output stream.