Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

pdfbox git merge example. Where the final merged file is stored?

I want to use the pdfbox library for java to merge thousands of small pdf files. Looking for an example I found one on the pdfbox site and specifically in the examples it has(PDFMergerExample).
But where the final merged file is saved?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

It’s just a class, not a complete sample…
The entry method returns an InputStream, from there you can read the result and store ist to e.g. a file.

public InputStream merge(final List<RandomAccessRead> sources) throws IOException

https://www.baeldung.com/convert-input-stream-to-a-file

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading