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 360 forks source link

Trouble integrating MathML / SVG #838

Open smahnken opened 2 years ago

smahnken commented 2 years ago

I'm having some trouble getting the integrated MathML functionality to work. I've added the dependency to my pom file, and the build completes without errors. However, I receive a runtime error indicating that it can't resolve org.freehep.graphics2d. I've tried adding the Maven dependency to my pom, but then I get a different "cannot resolve" runtime problem. It would seem I'm stuck in dependency hell.

I have a similar issue trying to integrate the SVG handler. In that case it builds fine, but the runtime complains about not being able to resolve org.mozilla.javascript. (Then org.python, then com.github.luben.zstd, then ...)

I think I must be doing something fundamentally wrong. I'm somewhat new to Java development, so there could be something I'm missing. Any ideas?

I'm using J8.