hads f006487221
All checks were successful
Build and Publish Docker Image / build (push) Successful in 1m36s
Delete renovate.json
2025-09-30 10:04:56 +13:00
2024-11-11 10:26:47 +13:00
2024-11-11 10:28:23 +13:00
2024-11-11 10:26:47 +13:00
2024-12-12 13:44:37 +13:00
2024-11-11 10:26:47 +13:00
2024-11-11 10:26:47 +13:00
2024-11-11 10:26:47 +13:00

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

  1. Clone the repository:

    git clone https://git.nice.net.nz/hinpdof.git
    cd hinpdof
    
  2. Install dependencies using Poetry:

    poetry install
    
  3. 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"
}
Description
No description provided
Readme MIT 7.4 MiB
Languages
Python 89.3%
Dockerfile 10.7%