PrinceXML & SVG proof of concept

Testing the capabilities of PrinceXML to render "fit-for-purpose" SVG floorplans for use with NexGen Asbestos reports

Must haves:

Nice-to-have:

To print and open

/usr/bin/prince http://svgfloorplans.com.local/test/ -o /home/david/Desktop/prince.svg.pdf
xdg-open /home/david/Desktop/prince.svg.pdf

Example

How to use an SVG in HTML (for print)

I need to look at the <svg /> containers properties viewBox & preserveAspectRatio - possibly settings them to:

viewBox="YMIN XMIN YMAX XMAX"
preserveAspectRatio="xMidYMid meet"

Maybe I should change these values when we save / load?