All checks were successful
Build and Publish Docker Image / build (push) Successful in 1m36s
hinpdof
hinpdof is a FastAPI-based app that converts HTML content to PDF using WeasyPrint.
Features
- Convert HTML content to PDF
- Customizable PDF filenames
- Health check endpoint
Requirements
- Python 3.12+
- FastAPI
- WeasyPrint
- Uvicorn
Installation
-
Clone the repository:
git clone https://git.nice.net.nz/hinpdof.git cd hinpdof -
Install dependencies using Poetry:
poetry install -
Run the application:
poetry run uvicorn app:app --reload
Usage
Convert HTML to PDF
Send a POST request to /pdf with the following JSON body:
{
"html": "<h1>Hello, World!</h1>",
"filename": "testfile"
}
Languages
Python
89.3%
Dockerfile
10.7%