Download it now!
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: 2018-12-10 08:07 UTC (History)
4 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

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