Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to PDF #15

Open
skaviouz opened this issue Oct 9, 2022 · 3 comments
Open

Export to PDF #15

skaviouz opened this issue Oct 9, 2022 · 3 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@skaviouz
Copy link

skaviouz commented Oct 9, 2022

A picture says 1k words

bug

Bug

this theme's headers can't be viewed from Sumatra PDF when you export to PDF, the ink font is okay, but it's the headers

control group

markdown file:

# H1

## h2

### h3

#### h4

##### h5

###### h6

regular text

+

Tests

I tried to output this theme to PNG output, the image outputs correctly.
I tried to output the document with default theme, pdf opens as intended.
I tried to output the document with another 3rd party theme "Purple", pdf opens as intended.

observations

the pdf has issues with Sumatra PDF, but can be viewed with Chrome.

Workaround

manually choose another theme explicitly for pdf output
Preferences > Export > PDF as you can see in the screen shot above.

Conclusion

Pandoc is working, but I don't know if this is a bug with Sumatra PDF or this theme, because 2 themes I tested out functions normally. I am making the assumption all the other non-dark themes do work and this is a bug with Liquid and not Typora or Pandoc.

@github-actions
Copy link

github-actions bot commented Oct 9, 2022

Hello, @skaviouz! Thank you very much for your issue, I will deal with these problems soon.

@Fentaniao
Copy link
Owner

Your conclusion is right. My initial supposition is that some features used by Liquid don't be fully supported by some softwares, such as transparent. I am busy for recent months, but I will investigate this bug and solve it in the several days.

@Fentaniao Fentaniao added the bug Something isn't working label Oct 12, 2022
@Fentaniao
Copy link
Owner

Fentaniao commented Nov 28, 2022

This problem almost drive me mad.

I feel sorry that I can't solve it, at least for now. I will go on finding ways to solve. Before that, this issue will keep open.

I don't know what causes this problem exactly, but I guess this is the problem maybe both because of the export function of Typora and some feature not supported by Sumatra PDF.

Here are some clues:

  • I used to see this problem when I preview PDF document export by Typora with Liquid theme in some social software, such as Tencent QQ, WeChat. However, now these two software have solved this problem.
  • I use different ways to render gradient text, but the PDF export by Typora with Liquid theme all run into the same problem in Sumatra PDF.
  • PDF document export by Typora with Liquid theme works well in Adobe Acrobat.
  • PDF document print by Typora with Liquid theme works well both in Sumatra PDF and Adobe Acrobat.

Before this problem is solved. I advice you to use print rather than export function. PDF document print by Typora with Liquid theme works well in Sumatra PDF. Another advise is that use the other themes or PDF software.

Thank you for your issue, especially for your well-organized writing.

Anyone who has idea, plz contact me.

@Fentaniao Fentaniao added help wanted Extra attention is needed question Further information is requested and removed help wanted Extra attention is needed question Further information is requested labels Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants