BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.07k stars 1.47k forks source link

Export as PDF code block display bug #2984

Open tangjiabing opened 5 years ago

tangjiabing commented 5 years ago

Issuehunt badges

Version: 0.11.15 Operating System: Windows 10 Bug: There are some display problems when markdown to export as pdf !

bug

test data as follows!!!!!

test data of markdown to export as pdf.txt

Hope to help developers locate problems!!!!

And Hope to be fixed quickly, thanks!!!!!!!!

@yosmoc @azu

IssueHunt Summary ### Sponsors (Total: $40.00) - [boostio boostio](https://issuehunt.io/u/boostio) ($40.00) #### [Become a sponsor now!](https://issuehunt.io/r/BoostIo/Boostnote/issues/2984) #### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/BoostIo/Boostnote/issues/2984) ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/BoostIo/Boostnote/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds.
AWolf81 commented 5 years ago

Thanks for reporting the issue. I was first a bit confused because it looks like v0.11.15 doen't have the export to pdf option. image

But I could test your markdown snippet on master and I don't get the problem.

I'm not getting any styles in the generated pdf. Here is the PDF I've created on Windows 10 with the export to pdf feature. exported-pdf.pdf

How did you create the PDF? Have you created it with a printer e.g. Microsoft print to PDF? Or a different PDF printer? With printing to a pdf I'm getting a similar output like yours with cutted text - it seems like Microsoft print to PDF is generating an image of the preview section. I have to check how to avoid the cutted text. image

After changing the page size before pdf printing to letter instead of A4 fixes the cutted text but I think that's just a work-around. It should also work with A4 output. printed-test-letter-page.pdf

IssueHuntBot commented 5 years ago

@boostio has funded $40.00 to this issue.


Flexo013 commented 5 years ago

@tangjiabing Are you still experiencing this issue with the latest version 0.11.17?

Flexo013 commented 5 years ago

Reproducible on Windows 10 with 0.11.17:

Exporting a large code block to PDF causes misalignment:

image