LOG.info(fileList[i].getFile().getAbsolutePath() + ": " + currentDocumentPages
+ " pages to be added.");
if (pdfWriter == null) {
if (inputCommand.isCopyFields()) {
// step 1: we create a writer
pdfWriter = new PdfCopyFieldsConcatenator(new FileOutputStream(tmpFile), inputCommand
.isCompress());
LOG.debug("PdfCopyFieldsConcatenator created.");
// output document version
if (inputCommand.getOutputPdfVersion() != null) {
pdfWriter.setPdfVersion(inputCommand.getOutputPdfVersion().charValue());