Azure Function: PDF Generator

Leela Venkatesh

Leela Venkatesh Atchutha

Azure Function: PDF Generator

This Azure Function generates PDF files from JSON input. Users can send data like invoice or report details and receive a PDF.

Features

Input JSON data via HTTP POST request.
Generates a PDF using ReportLab library.
Returns PDF as response.

Setup (Windows)

Install Python (if not installed): https://www.python.org/downloads/
Install Azure Functions Core Tools:
 npm i -g azure-functions-core-tools@4 --unsafe-perm true
Clone repository:
    git clone https://github.com/alvenkatesh100/Pdf_generator.git
cd azure-function-pdf
Create virtual environment:
    python -m venv venv
.\venv\Scripts\activate
Install dependencies:
    pip install -r requirements.txt
Run locally:
    func start
Test API:
    POST http://localhost:7071/api/PdfGeneratorFunction
JSON body:
{
"title": "Invoice",
"name": "John Doe",
"amount": "$100"
}

Like this project

Posted Sep 21, 2025

Azure Function generates PDFs from JSON input using ReportLab.