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
transform statement #4
Comments
You have to ask rendering questions to the |
Hi Jeroen,
thank you for your reply!
Regarding your suspect that the svg file is malformed:
- I copied the file 'svg test.txt' into webStorm (File -> New ... -> HTML file) and it showed up correctly in Chrome. See attachment 'Bildschirmfoto 2016-11-28 um 18.08.22.png'
- Then I left out a couple of unnecessary instruction in that file. Thus you can check rather easily the simplified file 'svg test02.html' in the attachment. The svg data is shown correctly shown in Safari and Chrome, but not in the attached file 'svg test02.pdf' which is generated by the attached R program 'svg test02.R' which uses package rsvg.
- I generated the svg file basically using d3.
Do you still think it is just a question of rendering which has to be addressed to the librsvg folks?
Best regards,Ulrich
Jeroen Ooms <notifications@github.com> schrieb am 14:16 Donnerstag, 24.November 2016:
You have to ask rendering questions to the librsvg folks: https://wiki.gnome.org/LibRsvg. The R package only has bindings to librsvg2, dit does not actually implement the rendering.I suspect that your svg file is malformed though. Chrome also did not want to open it for me. How did you generate it?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes you will have to ask this on the librsvg mailing list or bug tracker. The R package only has a bindings, it does not control the rendering in any way... |
ok, thanks for your hint.I reported an issue: Bug 775350 – incorrect text alignment in the rendering of an svg tree
Regards,Ulrich
Jeroen Ooms <notifications@github.com> schrieb am 20:05 Montag, 28.November 2016:
Yes you will have to ask this on the librsvg mailing list or bug tracker. The R package only has a bindings, it does not control the rendering in any way...—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi Jeroen,
there is a question from the librsvg folks:
André Klapper 2016-11-29 16:37:38 UTC Which exact librsvg version is used?
https://bugzilla.gnome.org/show_bug.cgi?id=775350
Regards,Ulrich
Jeroen Ooms <notifications@github.com> schrieb am 20:05 Montag, 28.November 2016:
Yes you will have to ask this on the librsvg mailing list or bug tracker. The R package only has a bindings, it does not control the rendering in any way...—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Which operating system do you use? On Windows the package uses |
I am using macOS Sierra.
Jeroen Ooms <notifications@github.com> schrieb am 11:33 Samstag, 3.Dezember 2016:
Which operating system do you use? On Windows the package uses librsvg-2.40.16. On other systems it depends on what is installed on your system. But I think this problem appears with the latest version as well.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Do you have homebrew installed on your system? |
no, should I install homebrew?
Jeroen Ooms <notifications@github.com> schrieb am 11:42 Samstag, 3.Dezember 2016:
Do you have homebrew installed on your system?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
That way you can controll the version of
And then in R: install.packages("rsvg", type = "source") |
Thanks.I installed librsvg-2.40.16_1 and reinstalled rsvg. PDF-output is stillthe same.
Jeroen Ooms <notifications@github.com> schrieb am 11:52 Samstag, 3.Dezember 2016:
That way you can controll the version of librsvg yourself. So you can do:brew install librsvg
And then in R:install.packages("rsvg", type = "source")—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Note that the
|
Is there also a way to convert directly from svg to pdf without using R?
Jeroen Ooms <notifications@github.com> schrieb am 13:13 Samstag, 3.Dezember 2016:
Note that the librsvg from brew also comes with a handy command line utility rsvg-convert. You can use this to convert the svg to png via the command line, to rule out R:rsvg-convert svg.test.txt > out.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes, try this
|
I am closing this issue here because this is a problem in librsvg that also happens without R. |
Hi Jeroen,
thank you for your work. I would like to use rsvg to convert an svg character string to a pdf file, but it looks to me that there is an issue with inner nodes transform statements.
F.i. look in the attached example svg.test.pdf at value 8,4 of node 'RND (Plan) [J]'.
Value 8,4 should be right-aligned in column 'Total', but it is displayed too far left.
File svg.test.pdf was generated by rsvg from svg character string in file svg.test.txt.
file svg.test.safari.pdf was generated from svg.test.txt in Safari and looks correct.
( svg.test.txt also is presented correctly in Chrome.)
Regards,
Ulrich
svg test.pdf
svg test.txt
svg test safari.pdf
The text was updated successfully, but these errors were encountered: