Printit is a docker image and web api to easily convert HTML and CSS to PDF documents. It does not implement a rendering engine, but encapsulates existing ones under an api:
- weasyprint
- princexml
- wkhtmltopdf
- make
- node.js >= 16
- ruby >= 2.7
- docker
Install dependencies first (npm for code, ruby for integration tests) then run:
make deps
To run unit tests:
make tests.unit
To TDD:
make tests.unit.watch
Start the api first (it reloads on every change):
make up
Then launch the webspicy tests:
make tests.integration