play2-pdf icon indicating copy to clipboard operation
play2-pdf copied to clipboard

Cannot render .SVG file in .scala.html

Open immortalcy opened this issue 8 years ago • 3 comments

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

immortalcy avatar Oct 13 '16 08:10 immortalcy

Hi, I think is not possible without changes.

marcosinigaglia avatar Oct 14 '16 14:10 marcosinigaglia

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)

immortalcy avatar Oct 19 '16 04:10 immortalcy

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.

marcosinigaglia avatar Oct 19 '16 08:10 marcosinigaglia