Skip to content
New issue

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

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

Already on GitHub? # to your account

PDF output character size does not match with preview window character size #11

Closed
cilerler opened this issue May 30, 2018 · 8 comments
Closed

Comments

@cilerler
Copy link

cilerler commented May 30, 2018

Preview window is centered and has pretty large character size, where PDF output is left aligned and have very small character size.

I saw that we can't scale up the PDF through settings, any idea how to fix this issue?

@qjebbs
Copy link
Owner

qjebbs commented Jun 2, 2018

The plugin use html-pdf, we can look into its document to see if anything helps.

@qjebbs
Copy link
Owner

qjebbs commented Jun 2, 2018

PS: I like export to html, then print to pdf in chrome, this make things under control.😀

@qjebbs
Copy link
Owner

qjebbs commented Jun 2, 2018

See discussion there: ariya/phantomjs#12685

set page size to A3 kind of solving the problem:

---
phantomjs:
    type: pdf
    format: A3
---

@qjebbs qjebbs closed this as completed Jun 2, 2018
@cilerler
Copy link
Author

cilerler commented Jun 2, 2018

Thanks for the prompt response.

Issue I reported is opposite of the issue there. Text should be larger not smaller and align does not match. I could change the paper size to A6 but it will affect the print size so that method is not a solution and very "unpleasant" workaround.

bitmoji

PS: I like export to html, then print to pdf in chrome, this make things under control.😀

I disagree on that, especially page breaks (<div style="page-break-after: always;">&nbsp;</div>) become very difficult to manage when I try it through HTML

Also you may want to start using plugin that supports puppeteer instead of PhantomJS

I tried extension called Markdown PDF and the result is pretty nice. (I'm going to update here with the screenshots of the difference in following minutes so you can see the differences)

@cilerler
Copy link
Author

cilerler commented Jun 2, 2018

I did not set no settings fyi

markdown-extended

image

markdown-pdf

image

original source preview

image

@qjebbs
Copy link
Owner

qjebbs commented Jun 2, 2018

Thanks for the info, I will look into it ASAP.

@qjebbs qjebbs reopened this Jun 2, 2018
@qjebbs
Copy link
Owner

qjebbs commented Jun 8, 2018

Switched to puppeteer, thanks for your information.

@qjebbs qjebbs closed this as completed Jun 9, 2018
@cilerler
Copy link
Author

cilerler commented Jun 9, 2018

@qjebbs I just tested it and it works great!

bitmoji

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants