Apache OpenOffice (AOO) Bugzilla – Issue 121415
Cell content overlaps when exporting to PDF
Last modified: 2014-12-22 20:46:14 UTC
Created attachment 79958 [details] The spreadsheet file that gets wrong when exported to PDF When a cell content which is word-wrapped gets exported to PDF, the text inside the cells may overlap with the next row. I have looked at similar bug report, and it was advised to use printer metric to solve this (http://wiki.openoffice.org/wiki/Calc/CellWrapping). However, I tried using printer metric and the result still overlaps. I attached the ods file.
Created attachment 79959 [details] Exported PDF file (without print metric)
Created attachment 79960 [details] Exported PDF file (with print metric)
The file that Robin attached is indeed printed overlapping. However, a fresh spreadsheet made with Rev. 1400866 printed OK.
Created attachment 84306 [details] Original spreadsheet with overlapping text in PDF / print preview / ...
Created attachment 84307 [details] New document with sheet content copied from the original one, no longer overlapping text
Experiencing this issue also with the current 4.1.1 version (rev. 1617669). Interestingly, the problem can be solved by simply copying and pasting the complete contents of the problematic sheet to a new spreadsheet document, specifically the steps are: 1. Open the attached brokenPrintPreview.ods 2. Click cell A1 so it has the focus 3. Press CTRL-A, then CTRL-C to copy the complete sheet contents 4. Create a new spreadsheet document 5. Click cell A1 so it has the focus 6. Press Shift-Insert to paste Even more interesting: Doing the same but pasting into a new sheet of the same document will not solve the problem. A visible difference between the cells in the original and the new document is that in the new document, the text inside the affected cells spans 3 text rows, where in the original sheet, the same text spanned only 2 rows (screenshot attached, "Comparison of copy & pasted sheet contents.jpg"). Besides the PDF feature, the print preview has the same problem.
Created attachment 84308 [details] Comparison of copy & pasted sheet contents (2 vs. 3 text rows)