Skip to content

aida-solat/PDF-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Processing API with FastAPI

This project provides a FastAPI-based API for PDF processing, including converting PDFs to JSON, extracting text from PDFs, and generating PDFs programmatically.

Endpoints

  • 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.

Setup

  1. Install the dependencies:
    pip install -r requirements.txt
  2. Run the application:
    uvicorn pdf:app --host 0.0.0.0 --port 8000

Dependencies

  • FastAPI
  • Uvicorn
  • PyMuPDF
  • pdfplumber
  • FPDF

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors