-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use SVG in PDF generation #85
Comments
Hi @tbadie Could you use the XML parser, as below, or is your real input messy? If it is messy and you can't use XML, I'll make the change in the DOM converter. Let me know.
|
@danfickle btw: I tried to use jsoup for a project of mine instead of JTidy. But jsoup destroyed my table layout, because it changed the DOM structure. So I stick for JTidy for now, I just had to increase the max line length, because JTidy did a column wrap in between a pair of quotes in a font-family declaration. JTidy seems to preserve the HTML structure as best as possible.
|
Closing due to lack of feedback. Reopen if needed. |
Hi team, I have tried to generate a basic pdf with a svg in but somehow it doesn't come through, and I was wondering if I had anything missing.
I am using the RC10, I have included the different modules (openhtmltopdf-svg-support, openhtmltopdf-jsoup-dom-converter, openhtmltopdf-pdfbox, openhtmltopdf-core) at that version. I have created a small main with a simple example (from https://commons.wikimedia.org/wiki/SVG_examples), but cannot see the image. Here is the main:
As a side note, I do not see the
openhtmltopdf-svg-support
module in the documentation (https://github.com/danfickle/openhtmltopdf/blob/open-dev-v1/docs/integration-guide.md#maven-artifacts), so you may have forgotten to add it there.Thanks for building this library, it's very useful!
The text was updated successfully, but these errors were encountered: