Itextpdf stop transform pdf correctly
问题 I have a next issue with itextpdf. private void generatePdf() throws Exception { FileOutputStream fos = null; try { PdfReader reader = new PdfReader("template.pdf"); fos = new FileOutputStream("test.pdf"); PdfStamper stamper = new PdfStamper(reader, fos); stamper.close(); } catch (Exception e) { throw e; } finally { if (fos != null) { try { fos.close(); } catch (IOException e) { throw new Exception(e); } } } } This method have to read a template and save that to a new pdf. But if I looked