AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

​Export as PDF in dark-mode creates unreadable text

Open allejo opened this issue 1 year ago • 6 comments

What happened?

When I go to export a document as a PDF (select Print and then Save as PDF), I receive a light gray colored text in the exported document, making it unreadable. However, this only happens when the application is in dark mode (either explicit or system setting). If I export while in light mode, the text is the expected black color.

My guess is that when the document is exported from dark mode, it inherits the text color of the dark mode editor.

Sample document with an image I wrote and exported in light mode.

image

Same sample document and exported in dark mode.

image

Distribution version

macOS x64 (Intel)

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

  • [ ] Yes

Relevant log output

No response

Anything else?

No response

allejo avatar Dec 13 '24 18:12 allejo

i can work on this issue, is this assigned to someone or not??

garvittsingla avatar Dec 22 '24 10:12 garvittsingla

it is working fine , i have checked it in my browser

garvittsingla avatar Dec 22 '24 11:12 garvittsingla

i have similar issue on windows 10 on affine 0.19.0-canary.8 image image can I add that the export as a whole is not working properly? html exports don't have styling and images are not looking hot

icarus-00 avatar Dec 25 '24 16:12 icarus-00

My self-hosting affine also has the same issue, no matter what format was selected at export(direct to printer included), the final result is just the same as # @allejo

Same sample document and exported in dark mode.

@garvittsingla Maybe you can test in affine client, I have this issue only in client, browser is glitchy but still usable.

Marius-Streicher avatar Feb 11 '25 02:02 Marius-Streicher

Same for me, browser doesn't have this issue but desktop client does (stable macOS build of the electron app)

ShrootBuck avatar Feb 19 '25 02:02 ShrootBuck

Still happening in Firefox

Image

elvisdragonmao avatar Mar 10 '25 02:03 elvisdragonmao

Any news on this?

kyuuaria avatar Mar 27 '25 09:03 kyuuaria

Up, Same problem and it's very frustrating not to be able to pdf

Jycreyn avatar Apr 03 '25 07:04 Jycreyn

@forehalo why the closure as not planned? 🙁

allejo avatar May 01 '25 07:05 allejo

A possible solution could be to switch to light mode automatically when exporting, and then change the theme back to the previous one

kyuuaria avatar May 26 '25 21:05 kyuuaria

Same issue with affine 0.24.1. Tested on both Brave and Firefox — it still doesn't work. Changing the theme and restarting the application helps, but embedded frames are still not rendered properly when printing to PDF.

CarloMauriello avatar Sep 08 '25 15:09 CarloMauriello

Geez, so this issue is still unfixed or even undiagnosed yet? Luckily I have switched to Obsidian, at least the folks there can do something about it.

Marius-Streicher avatar Sep 09 '25 02:09 Marius-Streicher

@Marius-Streicher Since I can just change to light mode and turn it back, which only takes like 2 seconds, so not a super big issue for me. Not sure why closed because of not planned.

elvisdragonmao avatar Sep 09 '25 02:09 elvisdragonmao

Since I can just change to light mode and turn it back, which only takes like 2 seconds, so not a super big issue for me.

Not sure why closed because of not planned. Maybe the devs just don't care about it or lacking manpower to solve this kind of minor problems that can heavily impact users' experience badly. Anyway, since I have bugged out and switched to Obsidian so IDC about it anymore.

Marius-Streicher avatar Sep 09 '25 02:09 Marius-Streicher