innoveit / play2-pdf

A PDF module for Play Framework 2
MIT License
77 stars 22 forks source link

Cannot render .SVG file in .scala.html #20

Open immortalcy opened 7 years ago

immortalcy commented 7 years ago

Is there any chance that play2pdf does not support .svg in .scala.html files?

I have seen all flying saucer examples and I couldn't make any of them work. <svg> tags wont work <img source="logo.svg"> wont work <object data="logo.svg"> wont work

marcosinigaglia commented 7 years ago

Hi, I think is not possible without changes.

immortalcy commented 7 years ago

Thanks for the updates - i'll stick to .png for the moment. Its a pity though because the result is so good.. using .svg for the logos would make it look more professional (talking about the digital version)

marcosinigaglia commented 7 years ago

I find this http://stackoverflow.com/questions/30083029/how-to-add-svg-image-to-pdf-built-with-html-and-flying-saucer-library-and-batik if you want try.