-
Notifications
You must be signed in to change notification settings - Fork 3
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 #8
Comments
|
Wkhtmltopdf just converts from html to pdf (used it extensively in a previous life). Typora is not actually used by the typora packager, it’s just a reference to the source of the stylesheet mdtk stole. We should certainly rename it before 1.0, but that’s a different issue I think.
I believe an option to export to pdf in one command has value in some scenarios where convenient sharing or archiving is more important than the ability to copy paste safely.
Thoughts on this?
Anthony Hogg
… On 28 Mar 2019, at 17:59, Łukasz Czerpak ***@***.***> wrote:
typora packager is used for labs typically and html format it generates is the best to share with others, as pdf can mess up especially there are fragments to copy/paste to terminal (non-printable characters, line breaks, etc..).
On a separate note I've heard good opinions about https://wkhtmltopdf.org (another option for typora I believe).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I have good results with puppeteer for typora packager. Zero issues, great results. |
@lukaszczerpak thanks a lot for that. Currently I'm getting reports that sometimes mdtk is not easy to install (lots of errors related to sharp and canvas that have specific install prereqs, can't remember the details. Puppeteer adds chromium to the dependencies, and will only serve the booklet/typora packager (at least as a quick thing, I think we could implement a puppeteer based renderer for revealjs as well, but that will be a much larger effort). Can you share your approach for rendering booklets using puppeteer outside of mdtk here? |
I have
|
Right, so Let me think about this a little bit. |
currently recommended approach
reveal packager: use decktape
typora packager: use chrome+print to pdf
would be nice to have an integrated approach
The text was updated successfully, but these errors were encountered: