Bug 152801 - Input text for a formatted text box shows up as light gray instead of black.
Summary: Input text for a formatted text box shows up as light gray instead of black.
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
5.3.2.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-01 23:20 UTC by lailie.ahava
Modified: 2023-08-13 20:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice document with form text boxes. When exported to pdf, this will reproduce the bug. (10.59 KB, application/vnd.oasis.opendocument.text)
2023-01-01 23:44 UTC, lailie.ahava
Details
Screenshot of the Export-to-PDF settings used to produce the bug. (70.25 KB, image/png)
2023-01-01 23:45 UTC, lailie.ahava
Details
PDF document with fillable form text boxes. When opened in pdf viewer, this will reproduce the bug. (15.86 KB, application/pdf)
2023-01-01 23:46 UTC, lailie.ahava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lailie.ahava 2023-01-01 23:20:43 UTC
Description:
When making a fillable pdf form, and using a formatted text box to allow text input on the form, the text color is broken. 

Using "Control Properties" > "Font ..." > "Font Color", then choosing "black" is chosen as the input text color. Export as pdf, then open the pdf and fill text in the fillable text box. This input text actually shows up light gray instead of black.

I personally verified with Adobe Acrobat Reader on Windows, but it has been documented here as well: https://ask.libreoffice.org/t/i-am-unable-to-make-the-input-text-for-a-formatted-box-black-in-color/24789

When dark gray (or another color) is selected as the input text color instead of black, the text color displays as intended. Note: On my system, the darkest gray is called "Dark Gray 4", but the forum post linked above from 6 years ago calls it "Gray 10". I assume these are the same thing, just renamed over time.

Steps to Reproduce:
1. Open document in LibreOffice Writer
2. Open Form Controls toolbar and create a form text box.
3. [this is likely to be default, but confirm just in case] Open Control Properties for the text box. Scroll down to "Font [...]" and click the three dots. Confirm that "Font Color" is set to "Black".
4. File > Export as pdf [...]. Ensure "create PDF form" is checked. Export.
5. Open pdf file with pdf viewer.
6. Type into text box form and observe the color of the input text.

Actual Results:
Input text appears as light gray in color.

Expected Results:
Input text should appear as black in color.


Reproducible: Always


User Profile Reset: No

Additional Info:
I haven't verified if this is related to Dark Mode on computer displays or not.

I am currently making the pdf using LibreOffice on Ubuntu, and viewing the pdf in Adobe Acrobat on Windows, but I suspect this issue persists across OSs and softwares, given the forum post from 2017.
Comment 1 lailie.ahava 2023-01-01 23:31:24 UTC
Reproducibility should be "Happens sometimes, but not always". Apologies for the mistake on the bug report.
Comment 2 lailie.ahava 2023-01-01 23:44:33 UTC
Created attachment 184432 [details]
LibreOffice document with form text boxes. When exported to pdf, this will reproduce the bug.
Comment 3 lailie.ahava 2023-01-01 23:45:39 UTC
Created attachment 184433 [details]
Screenshot of the Export-to-PDF settings used to produce the bug.
Comment 4 lailie.ahava 2023-01-01 23:46:28 UTC
Created attachment 184434 [details]
PDF document with fillable form text boxes. When opened in pdf viewer, this will reproduce the bug.
Comment 5 Kate 2023-02-01 06:39:15 UTC
Unable to replicate (Windows 10), with or without dark mode. 

The provided PDF displayed light gray text as described (as well as appearing oversized and inappropriately vertically aligned); however, when I exported the provided ODT, the newly created pdf displayed black text. I also tried following the steps as described (creating a new document/pdf) to no avail. 

Document settings of the pdfs (as provided by Adobe Acrobat Reader) displayed similar font details for both the light gray and black results. Settings within odt also seemed identical though, again, I was unable to replicate when exporting so could not reliably identify potential differences.

Not sure if more screenshots of settings would be beneficial or if it could be OS-related.
Comment 6 raal 2023-02-02 19:25:02 UTC
No repro with Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b052ec2f2fbe0f3044ba824c064a280a5ee9cd7f
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: x11
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded


You're using version LibreOffice 6.4, please try newer version. Thank you.
Comment 7 QA Administrators 2023-08-02 03:13:50 UTC Comment hidden (obsolete)
Comment 8 Timur 2023-08-13 20:16:17 UTC
WFM. Probably duplicate of bug 150886 or bug 150786.