drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

White text change to grey when exported to PDF

Open adithyaappu opened this issue 1 year ago • 5 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug In the desktop version when I export to PDF, white text becomes grey. #1050 describes similar issue while printing, but I experience the same in exporting.

To Reproduce Steps to reproduce the behavior:

  1. Add shape
  2. Select a high saturation style image
  3. File > Export As > PDF
  4. 'Selection Only': Export
  5. View the export

Expected behavior Text color remains white while exporting.

Screenshots Diagram image

PDF Export image

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 22.1.16

Desktop (please complete the following information):

  • OS: Windows

Additional context A work around I found out from draw.io article is to uncheck both 'Word Wrap' & 'Formatted Text'. When unchecked the export retains the white colour.

image

adithyaappu avatar Jan 10 '24 04:01 adithyaappu

Can you attach the PDF exported please?

davidjgraph avatar Jan 10 '24 09:01 davidjgraph

Can confirm this issue. There have been several issues over the last major versions, especially when using the dark mode, but while those seemed to have been fixed, this came up a new with one of the last ones. I regularly export PDFs and always use the dark mode so I would have become aware of this and it cannot be too long standing again now.

It also changes some color values for me aside the text color issue described above.

Current version: 22.1.18

LinguaOccultus avatar Jan 15 '24 08:01 LinguaOccultus

Also have this issue.

@adithyaappu thank you for sharing a workaround

ch-andrei avatar Jan 16 '24 19:01 ch-andrei

I got caught by this bug on 23.0.2 (not using dark mode). I thought that adding a black text background would make things better (in case it was some kind of buggy contrast enhancement), but in fact the white text on black background becomes in the pdf export light gray on white!

Png export:

test_white_font

Pdf export:

test_white_font.pdf

Screenshort of Pdf export:

test_white_font pdf_screenshot

pierre-haessig avatar Feb 02 '24 14:02 pierre-haessig

I just filed a duplicate issue: #1630 #1630 has a testkit attached.

Norbert80 avatar Feb 16 '24 09:02 Norbert80

This issue really affects productive work. Is it possible to set a milestone?

Norbert80 avatar Feb 16 '24 09:02 Norbert80

This is an open source project, asking for "milestones" and "ETAs" isn't really appropriate.

There's a release currently built, you can see if that improves the issue.

davidjgraph avatar Feb 16 '24 09:02 davidjgraph

This is an open source project, asking for "milestones" and "ETAs" isn't really appropriate.

There's a release currently built, you can see if that improves the issue.

Thanks for the hint... where can I find additional info? Which build should address this issue? Which path has been identified to cause this regression?

Norbert80 avatar Feb 16 '24 09:02 Norbert80

@Norbert80 use the work around specified in the original issue, under "Additional Context" until there is a fix. Don't bug developers with specific issues. Priorities are set considering many factors.

adithyaappu avatar Feb 16 '24 09:02 adithyaappu

I can confirm the color issues for PDF export are solved for me in 23.1.5 – however, since the custom fonts are still ignored (#1604) it does not help much so far ... (as both need to be fixed to make exporting work again).

LinguaOccultus avatar Feb 19 '24 09:02 LinguaOccultus

It was initially resolved in v23.1.5, but unfortunately, the issue persisted and resurfaced again in v24.0.4. Further investigation is required to address it at a deeper level. Thank you for your contribution to this open-source project. @davidjgraph

LennonReid avatar Mar 14 '24 05:03 LennonReid

This works for me, exporting this test case via File, Export as, PDF with default settings.

alderg avatar Mar 14 '24 05:03 alderg

Does 24.0.6 show this issue?

davidjgraph avatar Mar 14 '24 07:03 davidjgraph

Hi @davidjgraph,

Apologies for the delay in getting back to you on this!

I just tested it on version 24.1.0, and the issue seems to be resolved there. Looks like the fixes implemented after 24.0.4 did the trick.

Thanks for checking in and for your ongoing support of this project.

Cheers!

LennonReid avatar Mar 25 '24 15:03 LennonReid