I’m looking for a Java library that will can take a Image (PNG) and create a PDF.
Or Create the PDF directly from a java panel that has been drawn.
I’m looking for a Java library that will can take a Image (PNG) and
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can achieve this using Gnostice PDFOne for Java (http://www.gnostice.com/PDFOne_Java.asp).
Find below the code snippet that creates a PDF document from a PNG image.
To create a BufferedImage from a JPanel you can use the below code snippet.
After creating BuffereImage from JPanel you can use the first code snippet to create PDF.
I hope you will find this useful.
Disclaimer: I work for Gnostice.