Bug 135371 - Highlighted positions of comments are lost when exporting to PDF
Summary: Highlighted positions of comments are lost when exporting to PDF
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
: 151642 (view as bug list)
Depends on:
Blocks: PDF-Export Highlight-Color
  Show dependency treegraph
Reported: 2020-08-01 19:54 UTC by lomacar
Modified: 2023-09-28 09:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

video (3.17 MB, video/mp4)
2020-09-14 13:33 UTC, BogdanB
the file I worked on (8.90 KB, application/vnd.oasis.opendocument.text)
2020-09-14 13:34 UTC, BogdanB
Test ODT (11.04 KB, application/vnd.oasis.opendocument.text)
2022-09-16 12:12 UTC, Timur

Note You need to log in before you can comment on or make changes to this bug.
Description lomacar 2020-08-01 19:54:58 UTC
When you export a Writer document to PDF with comments enabled, the comments do export, but not the highlighting showing what the comments referred to.

Steps to Reproduce:
1.Highlight text in a Writer document and insert a comment.
2.Export the document as a PDF with "Export comments" option enabled
3.View the PDF in a PDF reader.

Actual Results:
The comment highlights are gone. Instead there is a small note icon placed at the end of where the highlight was.

Expected Results:
Highlighting should be preserved and no icon should be added, unless it is for a comment that was inserted at a single point.

Reproducible: Always

User Profile Reset: No

Additional Info:
Version: (x64)
Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: en-AU (en_CA); UI-Language: en-US
Calc: threaded
Comment 1 Dieter 2020-08-03 12:21:54 UTC Comment hidden (obsolete)
Comment 2 lomacar 2020-08-26 23:11:15 UTC Comment hidden (obsolete)
Comment 3 Timur 2020-09-14 11:38:15 UTC Comment hidden (obsolete)
Comment 4 Timur 2020-09-14 12:09:30 UTC
Upon further consideration, let's confirm this as an enhancement. 
Can be tested if comments are marked for export in margins in LO options. 
Workaround: print to PDF printer.
Comment 5 BogdanB 2020-09-14 13:22:24 UTC Comment hidden (obsolete)
Comment 6 BogdanB 2020-09-14 13:26:14 UTC Comment hidden (obsolete)
Comment 7 BogdanB 2020-09-14 13:33:19 UTC Comment hidden (obsolete)
Comment 8 BogdanB 2020-09-14 13:33:37 UTC Comment hidden (obsolete)
Comment 9 BogdanB 2020-09-14 13:34:19 UTC Comment hidden (obsolete)
Comment 10 BogdanB 2020-09-14 13:37:01 UTC Comment hidden (obsolete)
Comment 11 lomacar 2020-09-14 19:03:19 UTC
Oh wow, your text disappeared completely? That is not the bug I am reporting. I am only taking about the the the highlight for the comment disappearing. It makes it hard to tell what you are commenting on and the icon that it puts in its place covers up some text.
Comment 12 Timur 2020-09-15 07:58:34 UTC
Bogdan, you need to set Tools-Options-Writer-Print to export comments at all. Also compare PDFs in different viewers. Please "obsolete" your comments and remove video.
Comment 13 QA Administrators 2022-09-16 03:39:38 UTC Comment hidden (obsolete)
Comment 14 Timur 2022-09-16 12:10:05 UTC Comment hidden (obsolete)
Comment 15 Timur 2022-09-16 12:12:39 UTC
Created attachment 182490 [details]
Test ODT

Repro 7.5+. Better to have test file here.
Comment 16 lomacar 2022-11-28 12:18:37 UTC
@Timur: You marked this as a duplicate of 77650, but they are different, from what I can tell. The solution in 77650 would just print the comments in the margins (shrinking the page to fit the comments, I presume). This would make the comments no longer true PDF comments but just part of the visible structure of the document. This is not an acceptable solution.
Comment 17 Emma Orabelle 2023-05-04 03:26:31 UTC Comment hidden (spam)
Comment 18 Buovjaga 2023-05-10 13:33:38 UTC
*** Bug 151642 has been marked as a duplicate of this bug. ***
Comment 19 Metiodora Azaney 2023-09-28 09:15:43 UTC Comment hidden (spam)