After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 632660 - pdf-export neglects rounded corners
pdf-export neglects rounded corners
Status: RESOLVED DUPLICATE of bug 598399
Product: dia
Classification: Other
Component: exports
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on: 599401
Blocks:
 
 
Reported: 2010-10-20 09:34 UTC by Sergey
Modified: 2011-06-26 12:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
original diagram (3.20 KB, application/x-dia-diagram)
2010-10-21 07:14 UTC, Sergey
Details
resulting pdf (1.04 KB, application/pdf)
2010-10-21 07:15 UTC, Sergey
Details
Output with dia-0-97-1 and cairo-1-10 (1.10 KB, application/pdf)
2010-10-21 18:55 UTC, Hans Breuer
Details

Description Sergey 2010-10-20 09:34:07 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.
Comment 1 Hans Breuer 2010-10-20 18:10:14 UTC
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.
Comment 2 Sergey 2010-10-21 07:14:42 UTC
Created attachment 172899 [details]
original diagram
Comment 3 Sergey 2010-10-21 07:15:09 UTC
Created attachment 172900 [details]
resulting pdf
Comment 4 Sergey 2010-10-21 07:18:51 UTC
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.
Comment 5 Hans Breuer 2010-10-21 18:55:15 UTC
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.
Comment 6 Hans Breuer 2010-10-23 11:57:00 UTC
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).
Comment 7 Sergey 2010-10-25 07:50:17 UTC
(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.
Comment 8 Hans Breuer 2010-12-12 12:01:09 UTC
Applying the patch from bug #599401 resolves this issue, too.
Comment 9 Hans Breuer 2011-06-26 12:36:24 UTC
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 ***