Path element cannot be exported to PDF
See original GitHub issueCurrently, only line, rect, ellipse, circle, text
elements can be exported to pdf.
see jspdf.plugin.svgToPdf.js
.
Any <path>
element in the svg document cannot be exported to pdf.
The following svg document will be exported as an empty pdf. 2 path elements are ignored.
<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg">
<path d="m100,229c191,97 173,-94 379,45" fill="#FF0000" stroke="#000000" stroke-width="5"/>
<path d="m223,101a114,62 0 1 0 219,2" fill="#FF0000" stroke="#000000" stroke-width="5"/>
</svg>
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
"path cannot be empty" error when exporting report to PDF ...
In TIBCO Jaspersoft® Studio, navigate to the Source tab and search for any invalid entries relating to pdfFontName attribute. which is causing ...
Read more >File format options for PDF export - Adobe Support
When you export PDFs to different file formats using the Export PDF tool in Acrobat, each file format includes unique conversion settings.
Read more >Id CC 2020 pdf export failure - Adobe InDesign
Id CC 2020 pdf export failure. I get an error "Failed to Export the PDF file" when exporting file previously created in Id...
Read more >KB39142: Image defined with absolute path on network do not ...
When a user attempts to export a document to PDF from MicroStrategy Web that contains an image with an absolute path on a...
Read more >LyX: "Directory path to the document cannot contain spaces ...
For several years I've been able to export to PDF using pdflatex regardless of whether or not there was spaces in the directory...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My fix now supports all path commands except arc commands(A,a) to be exported to pdf.
jsPDF supports bezier curves. But
jspdf.plugin.svgToPdf.js
(from CBiX/svgToPdf.js) does not support path element.Maybe svgedit should use
alafr/SVG-to-PDFKit
which has much more features: