Reputation: 27
Following is the chunk of my code:
PDFMergerUtility mergePdf = new PDFMergerUtility();
File f1 = new File("D:/out/pdf-sample.pdf");
File f2 = new File("D:/out/Combined.pdf");
PDDocument pd1 = PDDocument.load(f1);
PDDocument pd2 = PDDocument.load(f2);
mergePdf.appendDocument(pd1, pd2);
There is no error on the console; but the content isn't just getting appended.
Upvotes: 1
Views: 1156