refs #27 — stricter PDF output

All generated PDF files now come with a complete xref table.
This will help some non-compliant PDF viewers to parse them
correctly.
refs #40 — handle many SVG attributes