typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

Unable to export to PDF with dark theme #5078

Open KrisCris opened 2 years ago

KrisCris commented 2 years ago

Describe the bug The app is unable to export markdown to PDF using a dark theme.

To Reproduce Steps to reproduce the behavior:

  1. Use a dark theme.
  2. Export to PDF

Expected behavior Able to export to PDF using the theme I am using.

Screenshots / Screencasts

image

Sample Markdown File It even happens to an empty file...

Desktop (please complete the following information):

Typora Version e.g: 1.1

Prince-Mendiratta commented 2 years ago

Hi, any workaround for this?

KrisCris commented 2 years ago

Hi, any workaround for this?

The MacOS version has no such issue

Prince-Mendiratta commented 2 years ago

Hi, any workaround for this?

The MacOS version has no such issue

I'm currently using Linux, Typora v1.4.7 stable, no possible fix for this version?

jhildenbiddle commented 2 years ago

@KrisCris --

The MacOS version has no such issue

The macOS version definitely has the issue. See #5416 which was also inexplicably closed. Multiple approaches for addressing the issue are presented there as well.

atn: @abnerlee

KrisCris commented 2 years ago

@KrisCris --

The MacOS version has no such issue

The macOS version definitely has the issue. See #5416 which was also inexplicably closed. Multiple approaches for addressing the issue are presented there as well.

atn: @abnerlee

This is so weird, I have no problem at all on macOS... I have been using Typora for many years and rn I am using Version 1.4.4 (6547), with macOS 12.6.

Alright, I just tested with some themes, it seems although Typora says dark themes are not supported, it still successfully exported the themed PDFs on macOS.

test.md Cobalt.pdf DrakeAyu.pdf Panda.pdf Hivacruz.pdf Night.pdf VueDark.pdf

So I guess what you're talking about is a different issue about the warning pop-up.

But on windows, if it says this is not supported, then it prints pdfs with white background.

amirhosein-kia-darbandsary commented 1 year ago

@KrisCris For handle This problem if you want to have a Dark them pdf You can't directly export , so there is a way i have used many times you can export your content in HTML format then if you have

you will have a dark them pdf with your main content

Good Luck