コード例 #1
0
 protected void processTableContent(
     final LogicalPageKey logicalPageKey,
     final LogicalPageBox logicalPage,
     final TableContentProducer contentProducer)
     throws ContentProcessingException {
   try {
     if (writer == null) {
       writer = new XmlDocumentWriter(outputStream, metaData);
       writer.open();
     }
     writer.processTableContent(logicalPage, metaData, contentProducer, false);
   } catch (Exception e) {
     throw new ContentProcessingException("Failed to generate PDF document", e);
   }
 }
コード例 #2
0
  protected void processingContentFinished() {
    if (isContentGeneratable() == false) {
      return;
    }

    if (writer != null) {
      try {
        this.metaData.commit();
        writer.close();
      } catch (IOException e) {
        throw new InvalidReportStateException("Failed to close writer");
      }
    }
  }