Bug 159909 - FILESAVE DOCX PAC tool complains about too small contrast of paragraph with background color
Summary: FILESAVE DOCX PAC tool complains about too small contrast of paragraph with b...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PDF-Accessibility
  Show dependency treegraph
 
Reported: 2024-02-26 15:00 UTC by Gabor Kelemen (allotropia)
Modified: 2024-06-02 11:31 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer (12.27 KB, application/vnd.oasis.opendocument.text)
2024-02-26 15:00 UTC, Gabor Kelemen (allotropia)
Details
The example file exported as PDF from current master (35.05 KB, application/pdf)
2024-02-26 15:01 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the example document and the PAC error message (54.93 KB, image/png)
2024-02-26 15:01 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-02-26 15:00:42 UTC
Created attachment 192792 [details]
Example file from Writer

Attached file contains some paragraphs which have paragraph background set to a not default color.
When exported to PDF the PAC tool complains that there is not enough contrast between the text and the paragraph background.
If the same file is saved as docx and exported to PDF with Word, then the PAC tool does not complain - indicating there is actually enough contrast, just the PDF tagging is slightly wrong somehow.

1. Open attached document
2. Export as PDF with tagging enabled (PDF UA or Create form or Archive is not necessary, but they don't make it disappear either)
3. Open it in the PAC tool
->under the WCAG category there is a warning about contrast not being large enough.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 74185b8edf7f046a3372319da86a1d8ca0024c87
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: default

This seems to have been started in 7.4
Comment 1 Gabor Kelemen (allotropia) 2024-02-26 15:01:06 UTC
Created attachment 192793 [details]
The example file exported as PDF from current master
Comment 2 Gabor Kelemen (allotropia) 2024-02-26 15:01:29 UTC
Created attachment 192794 [details]
Screenshot of the example document and the PAC error message
Comment 3 Gabor Kelemen (allotropia) 2024-02-27 01:34:43 UTC
Seems to have started in 7.4 with:

https://git.libreoffice.org/core/+/30585873ca8c861aa2d13f85797930f62195ee55%5E%21/#F0

author	Miklos Vajna <vmiklos@collabora.com>	Mon Feb 07 13:28:06 2022 +0100
committer	Miklos Vajna <vmiklos@collabora.com>	Mon Feb 07 18:44:37 2022 +0100

PDF export: increase default precision of doubles

Adding CC to: Miklos Vajna