1

We are trying to convert PDF Byte Array to image(jpg format) in a JAVA project. We initially used PDFBox library but we are facing issues with the output. The generated PDF documents generated by PDFBox are ok but sometimes the images generated are blank.

Can anyone suggest some reliable and robust PDF libraries for JAVA. We are mainly looking for open source libraries but licensed libraries are also an option.

Thanks

1

2 Answers 2

2

There is a command line tool on Linux you can use from ImageMagick

convert file.pdf file.png
convert file.pdf file.jpeg

Can you stream your bytes through convert? Or write to tempfile and then convert?

Sign up to request clarification or add additional context in comments.

Comments

1

Opensource Libraries

http://www.jpedal.org/ https://pdf-renderer.dev.java.net/ http://code.google.com/p/pdfonejava/

Commercial Libraries, http://www.qoppa.com/pdfimages/index.html http://www.crionics.com/

I would prefer using jpedal.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.