This project provides a FastAPI-based API for PDF processing, including converting PDFs to JSON, extracting text from PDFs, and generating PDFs programmatically.
POST /pdf-to-json: Converts a PDF file to a structured JSON format.POST /extract-text: Extracts raw text from a PDF file.POST /generate-pdf: Generates a PDF with the provided text content.GET /docs: Returns API documentation links.
- Install the dependencies:
pip install -r requirements.txt
- Run the application:
uvicorn pdf:app --host 0.0.0.0 --port 8000
- FastAPI
- Uvicorn
- PyMuPDF
- pdfplumber
- FPDF