Simple, Docker-powered PDF conversions.
Athena transformed Arachne into a spider for challenging her as a weaver and/or weaving a tapestry that insulted the gods.
When aggressive mode is enabled, only the essential contents of a page are kept in the generated PDF document. It is a clutter-free version of the web page, perfect for reading.
Athena is an open source project.
It was designed to do one thing and to do it well - PDF conversions; to work together with other programs; and to be able to handle text streams, because that is a universal interface.
It aims to give users an on-demand capability to convert HTML to PDF without frills.
At the lowest level, its CLI component (
athenapdf) was designed to be an alternative / drop-in replacement for wkhtmltopdf, a popular CLI tool for HTML to PDF conversions. Because of Docker the CLI syntax is a bit more complex but it's much more reliable.
(For what it's worth, wkhtmltopdf is great, but it has a horrible habit of crashing unexpectedly - especially when printing documents with invalid HTML, problematic CSS or other issues).
Our CLI tool will suffice for most simple, and everyday HTML to PDF conversions.
However, for conversions at scale / PDF conversion as a service, we recommend getting started with our microservice component instead.
The microservice is packaged with
athenapdf, and you can run both components independently.
Both components are packaged, and distributed as Docker images.
The only dependency you will need is Docker, and the rest will be handled for you (even if you are running in an environment without a display server - headless environment).
Before starting, ensure your Docker environment is set up, and ready-to-use.
For OSX / Windows users, ensure your Docker Machine is prepared, and the appropriate environment variables are established.
docker pull arachnysdocker/athenapdf
docker run --rm -v $(pwd):/converted/ arachnysdocker/athenapdf athenapdf <input_path> [output_path]
clifor full documentation
[output_path] can be omitted.
docker run --rm -v $(pwd):/converted/ arachnysdocker/athenapdf athenapdf https://www.arachnys.com/the-long-road-to-achieving-true-perpetual-kyc/
For Windows users, an additional forward slash must precede the volume when using Git Bash / MinGW:
docker run --rm -v /$(pwd):/converted/ arachnysdocker/athenapdf athenapdf https://www.arachnys.com/the-long-road-to-achieving-true-perpetual-kyc/
Alternatively, if using the Windows command prompt:
docker run --rm -v %cd%:/converted/ arachnysdocker/athenapdf athenapdf https://www.arachnys.com/the-long-road-to-achieving-true-perpetual-kyc/
docker pull arachnysdocker/athenapdf-service
docker run -p 8080:8080 --rm arachnysdocker/athenapdf-service
curl http://dockerhost:8080/convert\?auth\=arachnys-weaver\&url\=https://www.arachnys.com/the-long-road-to-achieving-true-perpetual-kyc/ |> out.pdf
weaverfor full documentation
The default authentication key is
arachnys-weaver. This can be changed through the
WEAVER_AUTH_KEY environment variable.
The microservice can be deployed scalably to ECS if you want to build your own conversion farm.
athenapdf is NEITHER affiliated with NOR endorsed by Google Inc. and GitHub Inc.
An Arachnys Christmas project.