Skip to content

alltools-tech/kill-file

Repository files navigation

Kill File – Universal Files Converter & Compressor

Convert, compress, and OCR: PDF, Images, Office files. Bulk ZIP, multi-language OCR. Free, open source.


Features

  • PDF to PDF, compress, OCR
  • PDF to Images (JPG, PNG, etc)
  • Images to PDF/OCR
  • Images to Images (convert/compress)
  • Office to PDF/OCR (DOCX, XLSX, PPTX, TXT, etc)
  • Bulk ZIP download
  • Multi-language OCR (English, Hindi, Urdu, Chinese, Japanese, Arabic, Russian, French)
  • 12 MB max file size, secure validation
  • Download and preview
  • Help & Contact cards (frontend)

Quickstart

1. Install Dependencies

pip install -r backend/requirements.txt

2. Run Backend (API Server)

uvicorn backend.app:app --reload

Or if you're in the backend folder:

uvicorn app:app --reload

3. Frontend (Web App)

4. Test API

  • Use browser UI
  • Or run:
    python backend/test_api.py

API Endpoints

Endpoint Method Description
/health GET Health check
/convert/pdf POST PDF to PDF/compress/OCR
/convert/image POST Images convert/compress
/convert/office POST Office to PDF/OCR
/convert/zip POST Bulk conversion + ZIP download
/ocr/image POST OCR on image
/download/{file} GET Download converted file

Fields:

  • files: upload files (form-data, multiple)
  • compress: compression quality (10-100)
  • ocr_lang: OCR language (eng, hin, urd, chi, jpn, ara, rus, fra)
  • to_format: image format (jpg, png, etc) for image endpoints

Security Notes

  • Only allowed file types/extensions (see app.py)
  • Max file size: 12 MB per file
  • All uploads and downloads validated

Deployment

  • Host backend with FastAPI/Uvicorn (local or cloud)
  • Frontend is static HTML, can be served from any web host
  • For HTTPS/domain, use Nginx/Cloudflare/CDN

Contributing


License

MIT License


Credits

  • Powered by FastAPI, Pillow, pytesseract, Bootstrap, etc.

About

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published