danfickle / openhtmltopdf

An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
https://danfickle.github.io/pdf-templates/index.html
Other
1.93k stars 359 forks source link

Setting custom UserAgentCallback #933

Open genvlad opened 1 year ago

genvlad commented 1 year ago

I have same problem as in this article: https://stackoverflow.com/questions/8401298/how-to-set-base-url-in-flying-saucer-while-rendering-html-to-pdf

Solution is base on FS, but idea can be goog also here.

When I work from IDE all is good. but After pack my project to jar and deploy to server it doesnt work. Now I know how to solve it on FZ, but do somebody know solutions for openhtmltopdf ?

Thanks for ypur soon replies.

genvlad commented 1 year ago

solution is described in https://github.com/danfickle/openhtmltopdf/issues/146