Java: Converting HTML to PDF

preview_player
Показать описание
In this video, we will see how to convert an html document to the pdf format. We will create a simple java maven project and using the JSoup and openpdf dependencies convert an input html to pdf.
You can find the source code at the following github url:
Рекомендации по теме
Комментарии
Автор

is it possible to generate pdf from html template dynamically? so the html template will be fixed and based on it will generate multiple pdf (if we have multiple data)

shreysshikhare
Автор

how to remove the margin and the padding in the generated pdf?

only-codes
Автор

Exception in thread "main" Can't load the XML resource (using TrAX transformer). lineNumber: 128; columnNumber: 41; The entity name must immediately follow the '&' in the entity reference.
at
at
at
at
at
Caused by: lineNumber: 128; columnNumber: 41; The entity name must immediately follow the '&' in the entity reference.
at
at
at
... 4 more
Caused by: lineNumber: 128; columnNumber: 41; The entity name must immediately follow the '&' in the entity reference.
at
at
at
... 6 more


why this happing error?

milindjadhav