tmpFile = FileUtility.generateTmpFile(inputCommand.getOutputFile());
FileNameRequest request = new FileNameRequest(currentPage, fileNum, null);
outFile = new File(inputCommand.getOutputFile(), prefixParser.generateFileName(request));
currentDocument = new Document(pdfReader.getPageSizeWithRotation(currentPage));
baos = new ByteArrayOutputStream();
pdfWriter = new PdfSmartCopy(currentDocument, baos);
// set creator
currentDocument.addCreator(ConsoleServicesFacade.CREATOR);
setCompressionSettingOnWriter(inputCommand, pdfWriter);
setPdfVersionSettingOnWriter(inputCommand, pdfWriter, Character.valueOf(pdfReader.getPdfVersion()));