Skip to content
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

Not working for SVG Pattern #5

Closed
keshavnaidu opened this issue Aug 12, 2021 · 1 comment
Closed

Not working for SVG Pattern #5

keshavnaidu opened this issue Aug 12, 2021 · 1 comment

Comments

@keshavnaidu
Copy link

keshavnaidu commented Aug 12, 2021

First of all, its wonderful app...
But, Its not working while exporting a PDF, When we use a SVG pattern example this pattern:

<svg id="mysvg" xmlns="http://www.w3.org/2000/svg" width="595.28" height="841.89"> <pattern width="40" height="40" patternUnits="userSpaceOnUse" id="a" viewBox="0 -40 40 40" overflow="visible"> <path fill="none" d="M0 0h40v-40H0z"/> <path fill="#1D0E82" d="M0-40v20h20v-20zM20-20V0h20v-20z"/> </pattern> <g fill="#1D0E82"> <path d="M457-99h20v20h-20zM477-79h20v20h-20z"/> </g> <path fill="url(#a)" d="M0 0h595.28v841.89H0z"/> </svg>

Any help will be appreciated..
Thanks

@sharonchoong
Copy link
Owner

sharonchoong commented Aug 29, 2021

Hi! Thanks for your comment. When exporting to pdf, we are using SVG-to-PDFKit, but the jsdelivr CDN and the npm package for that are outdated. Please feel free to get a copy of the latest version of SVG-to-PDFKit directly from the repo (it is under MIT license), and save it to your project. I will also update the readme and demo with a SVG pattern example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants