20scoops/encrypt-file-pdf

By 20scoops

Updated about 5 years ago

API encrypt file PDF with Python

Image
1

100K+

Encrypt File PDF

Code style: blackDocker BuildDownloadLicense: MIT

API for encrypt file PDF.

Install

Make sure your uesed python3 and clone this repository

  • Manual
    1. cd src2. pip install -r requirements.txt3. python app.py
    
  • Docker Compose
    docker-compose up -d --build
    

Code Style

This project we used Black

pip install black

API

Endpoint: /encrypt-pdf

Method: POST

ParameterDescription
fileFile for encrypt (.pdf only)
passwordyour key for encrypt file

Production

// add env for production
FLASK_ENV = production

Recommend

If your PDF file size > 1MB. you must compress file before call API encrypt for reduces size and response time 😎

Docker Pull Command

docker pull 20scoops/encrypt-file-pdf