Thursday, September 29, 2022

[new] print/weasyprint

hi,

here's a port of https://weasyprint.org/ (and its deps), a tool that
allows to produce PDFs/invoices/tickets/books/posters from
markdown/html/webpages without using a web browser engine, using plain
python css/html parsers/etc. Stumbled upon it when looking at mkdocs
plugins to generate PDFs..

- devel/py-test-{flake8,isort} are two pytest plugins for tests
- textproc/py-cssselect2: implementation of css4 selectors
- textproc/py-tinycss2: css parser
- textproc/py-pyphen: hyphenation lib
- print/py-pydf: low-level pdf generation lib
- print/py-fonttools: font management lib
- archivers/py-zopfli: zopfli bindings used by some fonts
- print/weasyprint: the user-facing lib/command

https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#command-line
shows an usage example.

i think i have all the deps/pybuild things right, but more eyes welcome.

Landry

No comments:

Post a Comment