Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.PdfCopyFields


    }
    return outputFile;
  }

  private void writeCollection(String collectionFilename, FileOutputStream streamOut) throws DocumentException {
    PdfCopyFields collection = new PdfCopyFields(streamOut);
    for (String producedFile : producedFiles) {
      FileInputStream streamIn = null;
      try {
        streamIn = new FileInputStream(outputfolder + File.separator + producedFile);
        PdfReader reader = new PdfReader(streamIn);
        collection.addDocument(reader);
      } catch (Exception e) {
        noticeTexts.add("ERROR: could not add " + producedFile + " to " + collectionFilename + " : " + e);
      } finally {
        FileUtils.close(streamIn);
      }
    }
    collection.close();
  }
View Full Code Here

TOP

Related Classes of com.itextpdf.text.pdf.PdfCopyFields

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.