Bug 77643 - PRINTING: Highlighting not printed when commented text contains a line break (Linux, Mac)
Summary: PRINTING: Highlighting not printed when commented text contains a line break ...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) Master
Hardware: Other Linux (All)
: low minor
Assignee: Not Assigned
Depends on:
Blocks: Print
  Show dependency treegraph
Reported: 2014-04-18 13:21 UTC by Stephan van den Akker
Modified: 2022-02-01 15:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:

Sample document containing 2 lines of commented text. (11.30 KB, application/vnd.oasis.opendocument.text)
2014-04-18 13:21 UTC, Stephan van den Akker
incorrect pdf export (22.77 KB, application/pdf)
2014-04-18 21:00 UTC, Jorendc
comment with border (18.97 KB, application/pdf)
2015-05-17 14:52 UTC, Gordo

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan van den Akker 2014-04-18 13:21:02 UTC
Created attachment 97558 [details]
Sample document containing 2 lines of commented text.

How to reproduce:
1: Load the example document
2: Choose File -> Print from the main menu
3: In the Print dialog on the "General" tab: choose Comments -> Place in margins
4: Print the document

Expected result:
The commented text is highlighted in the print-out

Actual result:
The commented text is not highlighted in the print-out. Sometimes the border of the highlighting is visible.

Note: Normal highlighting does work with line breaks present.

Tested on openSuSE 12.3 (64-bit) and 13.1 (64-bit)
LOdev version:
Build ID: 7bda5f04a693c7943bc4201c11e73ca45bead661
Comment 1 vulcain 2014-04-18 13:43:41 UTC Comment hidden (no-value)
Comment 2 Jorendc 2014-04-18 21:00:16 UTC
Reproducible, tested using Mac OSX 10.9 with LibreOffice version:
Build ID: 619b4c40da9e85febbb08a3f7cf8aa8d10963fc1
TinderBox: MacOSX-x86@49-TDF, Branch:master, Time: 2014-04-18_00:07:53

I'll attach my exported pdf with version mentioned above.

Kind regards,
Comment 3 Jorendc 2014-04-18 21:00:44 UTC
Created attachment 97576 [details]
incorrect pdf export
Comment 4 Gordo 2015-05-17 14:52:08 UTC
Created attachment 115680 [details]
comment with border

I noticed the following when exporting to pdf (with printer settings set to comments in margins):

One line paragraph --> Range comment on one line --> highlighted
Two line paragraph --> Range comment on first or second line --> highlighted
Two line paragraph --> Range comment from middle of first line to middle of second line --> not highlighted
Two line paragraph --> Range comment over all paragraph --> not highlighted

If the cursor was placed on the comment anchor and the document is exported to pdf then that comment will have a border around it and the dashed line will be solid.  If it is a comment that is not highlighed then it will just have the border.  If the comment is highlighted then it will have that border as well.

I do not know if this happens when printing instead of exporting to pdf.

Windows Vista 64
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16
Comment 5 QA Administrators 2016-09-20 09:41:48 UTC Comment hidden (obsolete)
Comment 6 Stephan van den Akker 2016-09-20 14:02:59 UTC
Still reproducable in LOdev:

Build ID: 075489b4b810692edc2ba9910eb3ca659a2b6745
CPU Threads: 4; OS Version: Linux 3.12; UI Render: default; 
Locale: en-GB (en_GB.UTF-8); Calc: group
Comment 7 Timur 2018-04-03 16:36:22 UTC
From what I see this is Linux & Mac only. Reproduced in Linux with 6.1+.
But not reproduced printing in Windows with LO 4.3 nor with master 6.1+.
Comment 8 QA Administrators 2019-04-04 03:04:03 UTC Comment hidden (obsolete)
Comment 9 Stephan van den Akker 2020-01-10 14:15:35 UTC
Still reproducible on:

LO version:
Build ID: 30(Build:2)
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: kde5; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB
Calc: threaded

LOdev version:
Build ID: 16f8807a9255359da53e980185591e356166e414
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: kf5; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB
Calc: threaded

Operating System: openSUSE Tumbleweed 20200107
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.13.1
Kernel Version: 5.3.12-2-default
OS Type: 64-bit

NOT Observed in:

LO Version: (x64)
Build ID: dc89aa7a9eabfd848af146d5086077aeed2ae4a5
CPU-threads: 4; Besturingssysteem: Windows 10.0; UI-render: GL; 
Locale: nl-NL (nl_NL); Calc: group
Comment 10 stragu 2021-07-24 12:02:03 UTC
Reproduced using "Print to file..." in Print dialogue, with "LibreOffice Writer tab > Comments: place in margins".
The preview shows the highlighted text, but the resulting PDF doesn't have it.

Version: / LibreOffice Community
Build ID: cd2b5168e8ef1cb6e721bc5220421464ed723096
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-07-21_14:56:23
Calc: threaded
Comment 11 Timur 2022-02-01 15:05:20 UTC
Fixed from 7.3 with https://git.libreoffice.org/core/commit/4ab908e94da9305d6800c82b5d753c26193aa96b

tdf#138826 is actually a duplicate.