We're trying to output a PDF of a map generated by the Leaflet JS package. It includes images and SVG. We've manipulated the markup some and gotten the images to align correctly, mostly by modifying the "transform:translate3d" style to instead use "transform:translate" - apparently the translate3d property isn't supported at Prince 9.0 rev 5. We can deal with that.
However the SVG isn't coming through in the PDF. This HTML file looks fine in Chrome/Firefox (it's a map of Florida):
mapChrome2.html
But Prince does not show the SVG graphics at all, which are orange circles scattered around the state:
mapChrome2.pdf
I can get the graphics to at least display, such as by removing the transform style on the SVG and moving the SVG out of the map div, but of course now it doesn't align or scale correctly:
mapChrome2a.pdf
Is there something I'm missing or need to do to get the SVG to display and align in the PDF as it does in the browser? Thanks!
However the SVG isn't coming through in the PDF. This HTML file looks fine in Chrome/Firefox (it's a map of Florida):
mapChrome2.html
But Prince does not show the SVG graphics at all, which are orange circles scattered around the state:
mapChrome2.pdf
I can get the graphics to at least display, such as by removing the transform style on the SVG and moving the SVG out of the map div, but of course now it doesn't align or scale correctly:
mapChrome2a.pdf
Is there something I'm missing or need to do to get the SVG to display and align in the PDF as it does in the browser? Thanks!