Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

saveSvgAsPng is not capturing all the items inside svg tag #244

Open
su-gu opened this issue Mar 17, 2020 · 0 comments
Open

saveSvgAsPng is not capturing all the items inside svg tag #244

su-gu opened this issue Mar 17, 2020 · 0 comments

Comments

@su-gu
Copy link

su-gu commented Mar 17, 2020

SVG CODE: <svg id="barcode" width="650" height="400" x="0px" y="0px" viewBox="0 0 323 7" xmlns="http://www.w3.org/2000/svg" version="1.1" style="transform: translate(0px, 0px); text-align: center; margin-bottom: -140px;"><rect x="0" y="0" width="323" height="7" style="fill:#ffffff;"></rect><g transform="translate(10, -45)" style="fill:#000000;"><rect x="0" y="0" width="6" height="20"></rect><rect x="9" y="0" width="3" height="20"></rect><rect x="18" y="0" width="3" height="20"></rect><rect x="33" y="0" width="6" height="20"></rect><rect x="42" y="0" width="9" height="20"></rect><rect x="54" y="0" width="3" height="20"></rect><rect x="66" y="0" width="3" height="20"></rect><rect x="72" y="0" width="3" height="20"></rect><rect x="84" y="0" width="6" height="20"></rect><rect x="99" y="0" width="3" height="20"></rect><rect x="108" y="0" width="9" height="20"></rect><rect x="120" y="0" width="6" height="20"></rect><rect x="132" y="0" width="3" height="20"></rect><rect x="138" y="0" width="9" height="20"></rect><rect x="150" y="0" width="12" height="20"></rect><rect x="165" y="0" width="6" height="20"></rect><rect x="174" y="0" width="6" height="20"></rect><rect x="186" y="0" width="6" height="20"></rect><rect x="198" y="0" width="3" height="20"></rect><rect x="207" y="0" width="6" height="20"></rect><rect x="222" y="0" width="3" height="20"></rect><rect x="231" y="0" width="6" height="20"></rect><rect x="240" y="0" width="6" height="20"></rect><rect x="249" y="0" width="12" height="20"></rect><rect x="264" y="0" width="6" height="20"></rect><rect x="279" y="0" width="9" height="20"></rect><rect x="291" y="0" width="3" height="20"></rect><rect x="297" y="0" width="6" height="20"></rect><text style="font: 20px monospace" text-anchor="middle" x="151.5" y="42">SA00007</text></g><text style="font-size: 15px; transform: translate(10px, -65px);">JHARCRAFT</text><text style="font-size: 10px; transform: translate(10px, -54px);">SAREE</text><text style="font-size: 10px; transform: translate(10px, 15px);">sare2999</text><text style="font-size: 14px; transform: translate(10px, 3vh);">MRP-- Rs. 3000 / pcs(pc)</text></svg>

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

No branches or pull requests

1 participant