Bug 79232 - With comments referring to overlapping ranges, the ranges are false/garbled in PDF (with option "comments inside margin")
Summary: With comments referring to overlapping ranges, the ranges are false/garbled i...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
4.3.0.0.beta1
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF-Export Writer-Comments
  Show dependency treegraph
 
Reported: 2014-05-25 21:09 UTC by Gerry
Modified: 2024-07-31 20:20 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Problem-with-LO-printing-with-comments-inside-margin.odt (35.12 KB, application/vnd.oasis.opendocument.text)
2014-05-25 21:09 UTC, Gerry
Details
PDF export of attached .odt file (33.44 KB, application/pdf)
2014-05-25 21:13 UTC, Gerry
Details
the color shows fine with me (33.76 KB, application/pdf)
2014-05-25 23:24 UTC, Yousuf Philips (jay) (retired)
Details
LO 5.0.1 same problem with comments in margin (PDF output) (32.70 KB, application/pdf)
2015-09-04 15:37 UTC, Gerry
Details
PDF Output, Tested with 5.1.4 (28.64 KB, application/pdf)
2016-09-22 15:39 UTC, Gerry
Details
PDF Output tested with LO 6.0.6 (issue still exists) (28.85 KB, application/pdf)
2018-09-07 17:00 UTC, Gerry
Details
PDF: Bug confirmed on LO701 Problem-with-LO-printing-with-comments.pdf (227.41 KB, application/pdf)
2020-12-11 12:09 UTC, Gerry
Details
PDF (comments in margin) export from LO 7.5.rc2 (25.91 KB, application/pdf)
2023-01-18 03:30 UTC, Gerry
Details
PDF output of bug 79232, tested with 25.2 alpha (32.13 KB, application/pdf)
2024-07-31 20:20 UTC, Gerry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry 2014-05-25 21:09:49 UTC
Created attachment 99806 [details]
Problem-with-LO-printing-with-comments-inside-margin.odt

The PDF export of attached .odt file with the option "comments inside margin"* is skrewed. Please see the attached PDF output for the problems.


* I followed comment 45 in bug 36815 to activate comments inside margin for PDF export. For this, you need to activate: "in margins" in tools->options->writer->print. It is not yet implemented in the PDF export dialog (see bug 77650).
Comment 1 Gerry 2014-05-25 21:13:49 UTC
Created attachment 99807 [details]
PDF export of attached .odt file
Comment 2 Yousuf Philips (jay) (retired) 2014-05-25 23:23:14 UTC
I just tested it in Linux Mint with 4.3 beta 1 and it turned out fine.
Comment 3 Yousuf Philips (jay) (retired) 2014-05-25 23:24:29 UTC
Created attachment 99812 [details]
the color shows fine with me
Comment 4 Yousuf Philips (jay) (retired) 2014-05-25 23:26:34 UTC
I see now that the highlighted text is what is not showing correctly.
Comment 5 sophie 2014-07-03 12:28:15 UTC
Hi, I couldn't reproduce using version: 4.3.0.1 and Ubuntu 14.04, only the selected words are highlighted. Gerry, what is your OS, did you try it again with RC2? Thanks - Sophie
Comment 6 sophie 2014-07-03 14:17:41 UTC
Hi, I didn't understand first that the text selection for the 2 comments has to overlap to reproduce. Doing so I can reproduce with 4.3.0.2 on Ubuntu 14.04, part of the text selection of the first comment is missing on the left. Sophie
Comment 7 QA Administrators 2015-09-04 02:48:57 UTC Comment hidden (obsolete)
Comment 8 Gerry 2015-09-04 15:37:56 UTC
Created attachment 118417 [details]
LO 5.0.1 same problem with comments in margin (PDF output)

The bug still exists in LibreOffice 5.0.1. In attached PDF file you see still the same problems: (1) shifted highlighted area where the comment anchors, and (2) the problem with the highlighted area of a comment anchor that spans over two pages. This is at the completely wrong place.

P.S. I will file a separate bug for the new problem which is a regression: That the comments themselves are missing in the output.

Version: 5.0.1.2 (x64)
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: en-US (en_US)
Comment 9 QA Administrators 2016-09-20 10:28:32 UTC Comment hidden (obsolete)
Comment 10 Gerry 2016-09-22 15:39:45 UTC
Created attachment 127551 [details]
PDF Output, Tested with 5.1.4

Issue confirmed with Version: 5.1.4.2
Build-ID: 1:5.1.4-0ubuntu1

It looks different now, but equally bad
Comment 11 Cor Nouws 2016-10-21 08:16:12 UTC
Hi Gerry,

(In reply to Gerry from comment #10)
> Created attachment 127551 [details]
> PDF Output, Tested with 5.1.4
> 
> Issue confirmed with Version: 5.1.4.2
> Build-ID: 1:5.1.4-0ubuntu1
> 
> It looks different now, but equally bad

Can you please report exactly what problems you see?
I think it looks reasonable (daily20161018) but may be wrong...

thanks!
Cor
Comment 12 Cor Nouws 2016-10-21 08:26:04 UTC
*** Bug 102862 has been marked as a duplicate of this bug. ***
Comment 13 Cor Nouws 2016-10-21 08:27:10 UTC
*** Bug 83832 has been marked as a duplicate of this bug. ***
Comment 14 Gerry 2016-10-21 16:23:27 UTC
Hi Cor, thanks a lot for looking into the bug.

Please have a look at attachment "PDF Output, Tested with 5.1.4.pdf". It shows all the current issues of the PDF export with comments inside margin:

* Comments two and three refer to a range of text. However, the blue highlighting of the text range is completely at the wrong place in the PDF export. It should start at the left margin of the text column, but the highlighting is displaced to the right by roughly a centimeter.
* The anchors of the second and third comments refer to the wrong place. Usually the anchor should be at the end of the highlighted text range, to which the comment refers to.
* The fourth comment refers to a text range spanning from the first to the second page. In the PDF output, the highlighted area (to which the fourth comment should refer to) is shown on a completely wrong place and only on the second page.

You can see the difference yourself, if you open the first attachment "Problem-with-LO-printing-with-comments-inside-margin.odt" in LibreOffice and compare it with the PDF output of the fifth attachment "PDF Output, Tested with 5.1.4.pdf".
Comment 15 Cor Nouws 2016-10-21 18:06:42 UTC
(In reply to Gerry from comment #14)
> Hi Cor, thanks a lot for looking into the bug.

you're welcome. Thanks for writing down the issues.
May I conclude that all are a form of 'Notes refer to the wrong range/point"?

Cor
Comment 16 Gerry 2016-10-22 22:38:06 UTC
(In reply to Cor Nouws from comment #15)
> (In reply to Gerry from comment #14)

> May I conclude that all are a form of 'Notes refer to the wrong range/point"?


The issues seem to appear if a comment refers to a range of text and not only to a point. Then, the highlighted area is at the completely wrong position. The anchor of the comment refers to the wrong position, too. 
The worst case is, if the text range spans over two pages. Then, the highlighted area even is not above any text at all, but produces a gap between text paragraphs and sits in middle between.
Comment 17 Gerry 2017-09-03 20:59:09 UTC
I'd like to send a ping with regard to this bug on false PDF output with comments inside margin.

I tested the bug with recent LibreOffice version and the bug is still present.

Version: 5.4.1.2
Build ID: 1:5.4.1~rc2-0ubuntu0.16.04.1~lo0
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: de-DE (de_DE.UTF-8); Calc: single
Comment 18 QA Administrators 2018-09-04 02:54:55 UTC Comment hidden (obsolete)
Comment 19 Cor Nouws 2018-09-07 15:44:21 UTC
seems to look better. What you, @Gerry?

still not perfect in Version: 6.2.0.0.alpha0+
Build ID: c4fb70d1f70209e31936b9c488a044087f11c303
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-09-06_20:56:07
Locale: nl-NL (nl_NL.UTF-8); Calc: threaded
Comment 20 Gerry 2018-09-07 17:00:48 UTC
Created attachment 144744 [details]
PDF Output tested with LO 6.0.6 (issue still exists)

@Cor Nouws : Thanks for looking into this bug. With LO 6.0.6 I still encounter the issue, please see attached PDF (sorry, I don't have a newer LO version here).

Steps to reproduce:
1) select the new "in margins" in tools->options->writer->print and 
2) on export to pdf they will be in the margins of the scaled content

Could you try these steps with 6.2alpha?

LO version:
Version: 6.0.6.2
Build-ID: 1:6.0.6-0ubuntu0.16.04.1
CPU-Threads: 4; BS: Linux 4.4; UI-Render: Standard; VCL: gtk2; 
Gebietsschema: en-GB (de_DE.UTF-8); Calc: group
Comment 21 QA Administrators 2020-12-10 03:47:55 UTC Comment hidden (obsolete)
Comment 22 Gerry 2020-12-11 12:09:00 UTC
Created attachment 168053 [details]
PDF: Bug confirmed on LO701 Problem-with-LO-printing-with-comments.pdf

Bug is still present in LO 7.0.1.2

See the bottom of page 1: The highlighting is missing.
See the top of page 2: The highlighting sits at the top of the page, where it shouldn't be.


LibreOffice version:

Version: 7.0.1.2 (x86)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-US
Calc: CL

System:
Windows 10
Comment 23 QA Administrators 2022-12-12 03:18:21 UTC Comment hidden (obsolete)
Comment 24 Gerry 2023-01-18 03:30:43 UTC
Created attachment 184726 [details]
PDF (comments in margin) export from LO 7.5.rc2

The bug persists in LO7.5rc2.

The PDF export is now even worse than before: 
* The first comment is correctly exported to PDF.
* The second and third have wrong comment anchors.
* The fourth comment is entirely missing. Neither the range, nor the comment, nor the comment anchor are there.

System:
Version: 7.5.0.2 (X86_64) / LibreOffice Community
Build ID: c0dd1bc3f1a385d110b88e26ece634da94921f58
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 25 Gerry 2023-01-18 03:41:44 UTC
@Samuel: I felt free to add you to this bug, as you were adding the dialog to export comments in the page margin in 7.5. 
This bug here persists in 7.5.rc2 and the PDF output is even worse than before (see attachment in comment 24). 

P.S. I also had once a LibreOffice 7.5.rc2 crash when exporting the .odt file of attachment 1 to PDF with comments in margin, but I could not reproduce this crash.
Comment 26 Gerry 2024-07-31 20:20:11 UTC
Created attachment 195630 [details]
PDF output of bug 79232, tested with 25.2 alpha

Bug still exists in LibreOffice 25.2 alpha. See attachment.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c60dd66d89dab2174aa71c26c653f68908c7ba78
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded