-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG Export broken on main Paperjs.org site, and elsewhere #1945
Comments
Hi @Robbbb ! http://sketch.paperjs.org/ implements this directly via exporting the project as SVG string and using it in a Blob as URL Here's an example you could use for your Ruler Generator https://codepen.io/eeropic/pen/powRWpM let downloadLink = document.getElementById('downloadSVG')
let svgString = paper.project.exportSVG({asString:true})
var url = URL.createObjectURL(
new Blob(
[svgString],
{type: 'image/svg+xml'}
)
);
downloadLink.href = url
downloadLink.download = 'myPaperExport.svg'; |
@eeropic wow, thank you so much!! Without your help I never would have figured this out. |
Oops, while I solved it using your fiddle for Ruler Generator, the error remains on the main Paper.Js site |
Thanks, moving this issue to the Paper.JS site repository, and closing (as this repo is for the library itself) |
Description/Steps to reproduce
SVG Export broken on main Paperjs.org site as well as other places which use that code, such as my Ruler Genrator.
Go to Paperjs.org, click features, scroll to SVG export section, click Download as SVG
Link to reproduction test-case
Paper JS Main Site
Expected result
Download SVG
Error: 500 Server Error
The server encountered an error and could not complete your request.
URL of error: https://download-data-uri.appspot.com/
Additional information
The text was updated successfully, but these errors were encountered: