Merge pdf files within folder java
问题 I have searched a few solutions but cannot really find an answer. Within my app i save reports to pdf using IText, but now i would like to merge all the files within the folder as I complete the report. The issue is each folder contains different number of files so I cannot just hardcode them in. Any advice will be appreciated. 回答1: Here is a working example. I have used ITEXT Dependencies : <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.10<