I am using Flying Saucer to generate pdf from webpages. I came across a problem. Problem is how to print canvas images in pdf using flying saucer. Is there any other way, i can convert canvas images to pdf ?
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.
The only way to print canvas images into pdf using xhtmlrenderer, would be to convert these images into some format FS could understand. There is a Javascript method that converts the canva images into some static format that FS could use,
please take a look at https://github.com/hongru/canvas2image
Hope this would help 🙂