Bug 93200 - PDF import: text blocked in highlighted area (Multiply blend)
Summary: PDF import: text blocked in highlighted area (Multiply blend)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.4.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 150830 165663 (view as bug list)
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2015-08-06 14:56 UTC by Gregor
Modified: 2025-07-08 00:46 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
pdf highlight blocking text (1.35 MB, application/pdf)
2015-08-06 15:15 UTC, Gregor
Details
Blending test PDF (1.63 KB, application/pdf)
2016-06-26 08:22 UTC, vvort
Details
page 2 extracted from attachment 117716 has its highlighted text obscured by the highlight (51.58 KB, application/pdf)
2018-12-16 16:22 UTC, V Stuart Foote
Details
A minimal subsection of page2 that triggers this. (66.31 KB, application/pdf)
2025-07-08 00:46 UTC, Dave Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gregor 2015-08-06 14:56:30 UTC
I recently had Linux and LibreOffice installed. Impress is opening the acrobat pdf's and text that is highlighted is covered over by the highlight. The highlight is showing up, but not the text. I am not sure how to respond about the hardware question
Comment 1 Gregor 2015-08-06 15:15:47 UTC
Created attachment 117716 [details]
pdf highlight blocking text

See highlighted areas
Comment 2 raal 2015-08-06 16:23:07 UTC
Reproducible with Version: 5.1.0.0.alpha1+ (x64)
Build ID: e92a8b92072284fd7c37d7bb3e1e8fe72a185f35
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2015-07-22_21:46:26
Comment 3 Gregor 2015-08-06 16:50:07 UTC
I am using Linux Mint 17.2 Rafaela 64 bit
Hardware AMD Anthlon 64 bit processor 3 gig memory
Comment 4 Heiko Tietze 2016-05-09 15:28:56 UTC
Confirmed (looks like this issue is also related to the transparency problem)

Version: 5.2.0.0.alpha0+
Build ID: 6b232aeecc55f1715bc111e636e36a8e24827efb
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-01-26_07:40:04
Locale: de-DE (de_DE)
Comment 5 vvort 2016-06-26 08:22:06 UTC
Created attachment 125910 [details]
Blending test PDF

This highlight is combined with text using multiply blend mode.
But LibreOffice have no support for blending modes.
See attached PDF test file for example.
Comment 6 QA Administrators 2017-09-01 11:16:22 UTC Comment hidden (obsolete)
Comment 7 V Stuart Foote 2018-12-16 16:22:27 UTC
Created attachment 147609 [details]
page 2 extracted from attachment 117716 [details] has its highlighted text obscured by the highlight

Remains an issue, the highlights block the underlaying text. As in page 2 of  attachment 117716 [details] extracted here.

Version: 6.1.4.2 (x64)
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU threads: 4; OS: Windows 10.0; UI render: GL; 
Locale: en-US (en_US); Calc: CL

and current master/6.3.0

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 3c964980da07892a02d5ac721d80558c459532d0
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-12-12_03:38:09
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 8 V Stuart Foote 2018-12-16 16:31:51 UTC
As an aside, the pdfium based PDF insert does not render the text highlighting into its bitmap.  But it does handle blending correctly when inserting the "Blending test PDF" of attachment 125910 [details]

Would have expected similar handling...
Comment 9 QA Administrators 2020-12-16 03:57:52 UTC Comment hidden (obsolete)
Comment 10 Ajb 2022-02-25 20:55:35 UTC
Problem still exists in Version: 7.2.5.2.0+ running on Manjaro Linux:

I retrieved a .PDF file containing yellow-highlighted text, and only the highlighting is visible on the screen, and only uniform gray appears on the b/w-printed page.
Comment 11 Timur 2022-09-07 17:51:29 UTC
*** Bug 150830 has been marked as a duplicate of this bug. ***
Comment 12 Xavier R 2022-09-08 11:59:26 UTC
As seen on #150830 (duplicate of this bug):

 - this bug occurs on Windows and Linux, and problably other platforms ; x86 and x86-64 -> I change Hardware  values of the ticket to All/All


Recpa from #150830:
Version: 7.2.7.2 (x64) / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 12; OS: Windows 10.0 Build 22000; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL

Version: 7.3.5.2 (x86) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 12; OS: Windows 10.0 Build 22000; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL

Version: 7.2.7.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Ubuntu package version: 1:7.2.7-0ubuntu0.20.04.1~lo1
Calc: threaded

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 9ba1e1486bf3fcccf98da93d3963b3d4036705a9
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded

Version: 7.2.7.2 / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded
Comment 13 QA Administrators 2024-09-08 03:16:46 UTC Comment hidden (obsolete)
Comment 14 V Stuart Foote 2025-03-10 13:03:50 UTC
*** Bug 165663 has been marked as a duplicate of this bug. ***
Comment 15 Dave Gilbert 2025-07-08 00:45:18 UTC
vvort's right in comment 5 - this is a multiply blend problem; hmm it's not clear what to do with this.
For the original bug case there are loads of ways to represent this in LO natively:
  a) Push the yellow box behind the text
  b) Set the highlight colour of the text
are just the two obvious ones.

How to transform the current input into either of those sensibly is a fun question; but it would only work with this case, but then does anything else use multiplicative blends?

An easy hack which would kind of work for this case would be to mark all things with a multiplicative blend as partially transparent - then at least you could read the text that's hidden.  The coloursof that Blending test would be completely wrong though.
Comment 16 Dave Gilbert 2025-07-08 00:46:26 UTC
Created attachment 201697 [details]
A minimal subsection of page2 that triggers this.