GNOME Bugzilla – Bug 442546
pdf export: problem with dash length
Last modified: 2010-08-18 14:42:45 UTC
Steps to reproduce the problem: - open the attached .gnumeric file => the dash length for both the primary and secondary grids are of the same length - export the graph to pdf => in the pdf file, the dash length is shorter for the secondary grid. It might be linked to the width of the lines.
Created attachment 89093 [details] The .gnumeric file to reproduce the problem
Created attachment 89094 [details] The .gnumeric file to reproduce the problem Oups, sorry, the first file was a wrong one.
Created attachment 89095 [details] The exported .pdf graph.
It's not a PDF export bug, but a screen output one. A possible solution to avoid this issue would be to calculate the dash lengths from the raw line width (not rounded), and round the values in order to keep sharp line ends. That would make the screen output closer to the PDF one. The problem is we'll have the same screen rendering for different dash types.
By the way, if you want to obtain the same dash length for both minor and major grid lines in the PDF output, you can set the line width to the same value, and adjust the line colors.
For the record, this problem is still here with cairo-based rendering.
I don't understand "The problem is we'll have the same screen rendering for different dash types" from comment #4. I don't think it will be worse than previously, so I did it. This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.