-
Notifications
You must be signed in to change notification settings - Fork 55
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
Some SVG images aren't render correctly #85
Comments
Hi Petr, sorry to hear you're having troubles with prawn-svg. Would you be able to attach an example SVG file that shows the problems you're experiencing please? |
Hi, I've tried several svg outputs of one image exported from MS Visio, but none of them is working properly for me. Then the Visio drawing imported into LibreOffice Draw -> exported to SVG works (libreDraw.svg). See attachment. P.S. the cleaned version is generated by the SVG cleaner Thanks, |
Thanks Petr! I've taken a look at the SVG output and found two bugs in prawn-svg:
I'll try to look into fixing these problems this weekend, but please excuse me if it's a bit longer. |
Perfect! Sounds good :o) Many thanks for your fast support! Have a nice day. |
Styles defined in <style> elements apply globally, even to elements above the <style> blocks. Partially fixes #85.
Previously elements rendered because of a <use> element were not using the <use> element's properties and state. Partially fixes #85.
Turned out there were three problems, that has to be a record for a single SVG file! I'd appreciate it if you could try it out by referencing prawn-svg directly from the github repo:
and let me know if you have any troubles with this one! Thanks. |
Hi, Many thanks for your quick support! |
So I did more deep crosscheck on my other drawings, and I have to say that the multi-line problem is fixed and now it works perfectly. but ... unfortunately, I found out other problems ... in some of my drawings, the elliptical arc is not rendered correctly (see attached PDF). After several trials, I was able to find out the conditions which cause the problem. It always occurs , when the arc is scaled. If the original size is used, then it works well. So far it seems that the problem is only with this one shape, but frankly speaking, I did check only a few basic shapes and lines. Do you have an idea what can be wrong? I am not sure, if the next problem I am facing with, belongs to your module ... but anyway ... Do you have an idea how to deal with ? |
just a small update ... the second issue (zero length line) should belong to prawn module ... so it is not for you :o) |
@Nowass we could patch that in Asciidoctor PDF. |
@mojavelinux this would be great! so I hope I didn't create too many mismatches :-) Thanks! |
I've created a new issue for the scaled arcs not appearing correctly, #87, and will take a look when I can! Thanks. |
Hi,
I use MS Visio for SVG images creation, but these images are not correctly rendered in generated PDF output. The problem is mainly with the multi-line text where all the lines are generated in one line. Other problems are the arrows at the end of the lines.
If the same (very similar) image is created for example in LilbreOffice Draw, the output is ok. I've tried a lot of other tools for SVG images (Google draw, Smart Draw, Inkscape, Pencil, ...) and so far it seems that the problem is only with the Visio images.
See attachment with PDF output example.
Do you have any idea what can be wrong?
Thank you,
Petr
svgTest.pdf
The text was updated successfully, but these errors were encountered: