ionelmc / python-darkslide

Generate HTML5 slideshows from markdown, ReST, or textile
http://ionelmc.github.io/python-darkslide/
Apache License 2.0
97 stars 22 forks source link

open source PDF export #2

Closed Matthias84 closed 7 years ago

Matthias84 commented 7 years ago

Hi there, the current PDF engine is sadly an commercial product. Are there any plans to replace it with an open source component? What are the technical requirements?

ionelmc commented 7 years ago

Huh. I didn't even notice it's commercial (I just forked this project from landslide).

I think something can be worked out, perhaps using Chrome's pdf print mode? How about that?

ionelmc commented 7 years ago

I'd look like this darkslide-examples.pdf

Matthias84 commented 7 years ago

The result is pretty nice, but personally I would preffer an non-browser approach to minimize dependencies and allow easy automatisation?

ionelmc commented 7 years ago

Well ... I'd very much like to solve this but then again, I just use chrome's pdf export when I need a pdf. Maybe I should just remove the pdf output support, it seems useless for most ppl.

ionelmc commented 7 years ago

Anyway... seems there's http://weasyprint.org/ or https://wkhtmltopdf.org/

Worth trying.

ionelmc commented 7 years ago

Well... weasyprint don't support many things like flex layouts, text shadows, javascript and probably many other important things. So it's a no.

And wkhtmltopdf is horrendously broken, doesn't even render anything.

I think I'm just gonna remove the feature. If anyone is using prince, and if it even works at all, they can just run it manually.