Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Doubt converting html to pdf
Hi everyone.
I am facing some issues about coverting an html file with css to pdf.My problem is that the code is wider that the wide of a page. So when I see the html file, I have an scroll bar to see al the content. But when I convert the file to pdf, it only prints the content which fits in the size of the page.
Is there any way of printing every content, either adding more pages or decreasing the zoom of the entire html? Any help would be very appreciated.I am using this to make the conversion:
I am facing some issues about coverting an html file with css to pdf.My problem is that the code is wider that the wide of a page. So when I see the html file, I have an scroll bar to see al the content. But when I convert the file to pdf, it only prints the content which fits in the size of the page.
Is there any way of printing every content, either adding more pages or decreasing the zoom of the entire html? Any help would be very appreciated.I am using this to make the conversion:
HtmlConverter.convertToPdf(htmlFinal, baos);
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™