carterwward / py-allotax

0 stars 0 forks source link

Test other options for HTML -> PDF #3

Open amafehr opened 4 weeks ago

amafehr commented 4 weeks ago

Summary

Most tools that do this either have many dependencies or rely on a browser driver (slow performance, potentially some browser issues). We would like to find some middle ground tool if it exists.

Details

This has to be lightweight; many options open a headless browser reliant on a browser driver (e.g. selenium uses the Chrome driver) which takes a few seconds per conversion (see posted issue for follow-up on this separately). We explored numerous options that do not seem possible, so this area remains a task anyone is free to take on. Specifically, we tried pandoc, weasyprint, node.js html-to-pdf, and a less restrictive DOM linkedom.

TODO

Options (non-exhaustive) and what we know

amafehr commented 3 weeks ago

I'm working to implement js's html-to-browser this week to remove the chromium dependency. Otherwise, install instructions are up-tp-date to reflect current installs needed.

amafehr commented 4 days ago

Womp womp, it didn't work out. See notes above.