GNOME Bugzilla – Bug 632660
pdf-export neglects rounded corners
Last modified: 2011-06-26 12:36:24 UTC
A simple box with _rounded_ corners is not exported correctly to pdf. In pdf one finds the box with _straight_ corners. As far as I can see this is a problem only for pdf. Svg and png both work properly.
This might be a problem of your PDF viewer. I've just tried a simple box with rounded corners: exported by Dia(win32, master, cairo-1-10) and displayed by Adobe Reader. Everything works as advertized. Please provide the Dia version used, the diagram and it's output.
Created attachment 172899 [details] original diagram
Created attachment 172900 [details] resulting pdf
I've just realized that the problem appears only with the landscape page setup. In the case of the portrait setting everything is fine. I've checked the bug for Dia versions 0.97 and 0.97.1. It does not seem to depend on the viewer, I used Evince 2.28, 2.30 and Adobe Acrobat. Please find the attached files as requested.
Created attachment 172950 [details] Output with dia-0-97-1 and cairo-1-10 I still can't reproduce the transition to pointy corners; attached the output consistent between 0.97.1 and current master. There is something wrong with the clipping, though.
The trouble somehow seems to come from newer gtk version. In my tests above I was using gtk-2-16 (the most reliable version for win32). With gtk-2-22 I can reproduce your results, so the bug should be somewhere in the gtk-print code (or Dia's use of it).
(In reply to comment #6) > The trouble somehow seems to come from newer gtk version. In my tests above I > was using gtk-2-16 (the most reliable version for win32). With gtk-2-22 I can > reproduce your results, so the bug should be somewhere in the gtk-print code > (or Dia's use of it). That is good, cause I was out of any other ideas why you had not experienced this bug. In a meantime I've tested that for different cairo libs: 1.8(OpenSuse 11.2, Ubuntu 10.04), 1.10(Ubuntu 10.10) and it does not make any difference.
Applying the patch from bug #599401 resolves this issue, too.
Given that bug 599401 resolves also Dia bug 598399 I'm folding this one into the other as renderer regressions. *** This bug has been marked as a duplicate of bug 598399 ***