The starting points: I don't have a server that can provide anything but static files. And I have an SVG element (dynamically created) in my <body>
that I want to export to a vector format, preferrably PDF or SVG.
I started looking at using the already existing lib jsPDF along with downloadify. It worked fine. Unfortunately, this does not support SVG, only text.
I've read about the PDF format's possiblities to embed SVG images, and it seems to have been enabled since Acrobat Reader 5 (along with the ImageViewer plugin). But it doesn't work. I've tried with 3 different PDF readers without success.
Does this mean that PDFs has dropped SVG embedding support? I haven't found anything on this.
I have two questions; can this be solved? And if yes, what are the specifications for embedding SVG inside of a PDF? With that info, I can build that support in jsPDF myself.
The browser support demands are Safari, Chrome and Firefox. The versions that supports SVG.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…