// set pdf version
setPdfVersionSettingOnWriter(inputCommand, pdfWriter, Character.valueOf(pdfReader.getPdfVersion()));
currentDocument.open();
PdfImportedPage importedPage = pdfWriter.getImportedPage(pdfReader, currentPage);
pdfWriter.addPage(importedPage);
currentDocument.close();
FileUtility.renameTemporaryFile(tmpFile, outFile, inputCommand.isOverwrite());
LOG.debug("File " + outFile.getCanonicalPath() + " created.");
setPercentageOfWorkDone((currentPage * WorkDoneDataModel.MAX_PERGENTAGE) / n);