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

WeasyPrint for PDF generation? #3906

Closed
mb21 opened this issue Sep 9, 2017 · 3 comments · Fixed by #3909
Closed

WeasyPrint for PDF generation? #3906

mb21 opened this issue Sep 9, 2017 · 3 comments · Fixed by #3909

Comments

@mb21
Copy link
Collaborator

mb21 commented Sep 9, 2017

Should we support WeasyPrint in addition to wkhtmltopdf?

This would require a --html-engine option. More correctly, it would have to be called --html-to-pdf-engine, but that's quite long and --latex-engine set some kind of precedent. Other options include --html2pdf-engine and --html-pdf-engine.

@jgm
Copy link
Owner

jgm commented Sep 10, 2017 via email

@iandol
Copy link
Contributor

iandol commented Sep 10, 2017

There is also PrinceXML which offers very professional publishing output (and free for non-commercial use), so having a general --pdf-via that could accommodate this in addition to the other tools would be nice. I'm not sure how best to configure the general command-line for each tool, it is currently hard-coded right?

@jgm
Copy link
Owner

jgm commented Sep 10, 2017 via email

mb21 added a commit to mb21/pandoc that referenced this issue Sep 10, 2017
and add support for `weasyprint` and `prince`, in addition to `wkhtmltopdf`
closes jgm#3906
mb21 added a commit to mb21/pandoc that referenced this issue Sep 10, 2017
and add support for `weasyprint` and `prince`, in addition to `wkhtmltopdf`
closes jgm#3906
mb21 added a commit to mb21/pandoc that referenced this issue Sep 11, 2017
and add support for `weasyprint` and `prince`, in addition to `wkhtmltopdf`
closes jgm#3906
@jgm jgm closed this as completed in #3909 Sep 12, 2017
jgm pushed a commit that referenced this issue Sep 12, 2017
* Rename --latex-engine to --pdf-engine
* In `Text.Pandoc.Options.WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine` and `writerLaTeXArgs` to `writerPdfArgs`.
 * Add support for `weasyprint` and `prince`, in addition to `wkhtmltopdf`, for PDF generation via HTML (closes #3906).
* `Text.Pandoc.PDF.html2pdf`: use stdin instead of intermediate HTML file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants