title: Merge pdf files with PDFBox using CLI
body: <p>I found PDFBox by Apache but what do I for example write in the cmd?</p>
  
  <p><a href="http://pdfbox.apache.org/commandlineutilities/PDFMerger.html" rel="nofollow">http://pdfbox.apache.org/commandlineutilities/PDFMerger.html</a></p>
  
  <p>tried <code>java -jar pdfbox-app-1.6.0.jar PDFMerger C:\f\test1.pdf,C:\f\test1.pdf C:\f\new.pdf</code> for example</p>
  
  <p>Can I also get the list of the PDFs to merge from a dir automatically for merging?</p>
  
  <p>Got it:</p>
  
  <p><code>java -jar pdfbox-app-1.6.0.jar PDFMerger C:\f\test1.pdf C:\f\test1.pdf C:\f\new.pdf</code></p>
  
  <p>In the end I used:
  <code>java -jar pdfbox-app-1.6.0.jar PDFMerger C:\f\*.pdf C:\f\new.pdf</code></p>