Issue 61324 - Cell borders differs in thickness when printing
Summary: Cell borders differs in thickness when printing
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.0.1
Hardware: PC All
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: frank
QA Contact: issues@sc
URL:
Keywords:
: 63160 70140 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-01-29 23:54 UTC by kalleanka
Modified: 2013-08-07 15:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Example of bad looking pdf (4.58 KB, application/pdf)
2006-01-29 23:59 UTC, kalleanka
no flags Details
Example file that was printed to PDF (5.76 KB, application/vnd.sun.xml.calc)
2006-01-30 00:00 UTC, kalleanka
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kalleanka 2006-01-29 23:54:42 UTC
File->Print->PDF Converter (via ghostscript 8.53) doesn't give cells that have 
equally thick borders the same thickness.
Just create a Calc spreadsheet with or without text in a few vertical cells and 
then add borders (vertical, horisontal or mixed, doesn't matter).
Then print using the standard PDF Converter (created via spadmin.bin) and look 
at the result (I'm using Adobe Acrobat Reader 7.0.1). If you zoom in you can see 
that the "bad looking" borders are about twice as thick.

I can't see any way to upload or attach a file here so you will have to do 
without example files.
Comment 1 kalleanka 2006-01-29 23:59:23 UTC
Created attachment 33671 [details]
Example of bad looking pdf
Comment 2 kalleanka 2006-01-30 00:00:33 UTC
Created attachment 33672 [details]
Example file that was printed to PDF
Comment 3 frank 2006-03-03 10:41:55 UTC
Hi Philipp,

please have a look at this one.

Frank
Comment 4 philipp.lohmann 2006-03-03 11:06:53 UTC
happens on all platforms when printing and has nothing to do with PDF converter
Comment 5 philipp.lohmann 2006-03-07 12:27:09 UTC
This is basically a rounding issue; the cell borders are drawn as a filled
polygon which is in an arbitrary coordinate system. For each border basically
the same polygon is drawn, just moved to other coordinates. When drawing these
each time the polygon is converted to pixel coordinate space, at which point the
rounding comes into play, the polygons cross different pixel counts and are
sometimes one, sometimes two pixels high.

The only way to fix this in vcl would be to exchange one rounding error in favor
of another; we could scale the polygon subpoints relative to the first point of
the polygon. I discussed this with thb and he was strongly opposed to this,
citing that we would just create other bugs this way where polygons wouldn't fit
anymore which did before.

The conclusion would be that the cell borders should perhaps be drawn another
way, e.g. as a line with thickness. What could also work would be always drawing
the same polygon but using the mapmode offset to translate the polygon.
Comment 6 frank 2006-03-14 13:08:06 UTC
*** Issue 63160 has been marked as a duplicate of this issue. ***
Comment 7 niklas.nebel 2006-05-11 10:18:49 UTC
Changing target (last integration for 2.0.3 is over).
Comment 8 niklas.nebel 2006-05-22 16:42:08 UTC
PDF and printing isn't quite the same with regards to rounding. For the one case
of PDF export and thin (1 twip) lines, it would help to change rounding in
svx/source/dialog/framelink.cxx, lclScaleValue, to always round down (remove the
0.25), so 1 twip is converted to 1/100th mm. For other cases, I guess we'll have
to live with the rounding effects.
Comment 9 daniel.rentz 2006-05-23 19:17:03 UTC
fixed in SRC680/dr48 (OOo 2.0.4)
Comment 10 niklas.nebel 2006-06-06 10:42:33 UTC
back to QA for verification

re-open issue and reassign to fst@openoffice.org
Comment 11 niklas.nebel 2006-06-06 10:42:45 UTC
reassign to fst@openoffice.org
Comment 12 niklas.nebel 2006-06-06 10:42:49 UTC
reset resolution to FIXED
Comment 13 frank 2006-06-08 13:20:26 UTC
Found fixed on Solaris, Windows and Linux in cws dr48
Comment 14 frank 2006-07-19 09:49:12 UTC
found integrated on master m176 usinf Solaris, Windows and Linux build
Comment 15 frank 2007-03-27 13:41:15 UTC
*** Issue 70140 has been marked as a duplicate of this issue. ***
Comment 16 frank 2009-08-10 10:33:28 UTC
*** Issue 103942 has been marked as a duplicate of this issue. ***