|
|
11 ay önce | |
|---|---|---|
| app | 1 yıl önce | |
| .env.example | 1 yıl önce | |
| .gitignore | 1 yıl önce | |
| README.md | 11 ay önce | |
| requirements.txt | 1 yıl önce |
FastAPI server for online PDF processing.
PDF Processing Server is a FastAPI-based server designed for online PDF processing. It provides endpoints for extracting text from PDF files and replacing content within PDF files. This project is developed and maintained by Gleematic Pte. Ltd.
Clone the repository:
git clone <repository-url>
cd PDF-Processing-Server
Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
Install the dependencies:
pip install -r requirements.txt
Copy the .env.example file to .env:
cp .env.example .env
Edit the .env file to set your configuration values:
BASE_DIR=/path/to/base/dir
API_KEY=your_api_key
Start the FastAPI server:
uvicorn app.main:app --reload
The server will be running at http://127.0.0.1:8000.
/extractionPOSTjson
{
"pdf_zip": "base64_encoded_zip_file"
}
json
{
"status": "success",
"data": "base64_encoded_extracted_texts"
}
/replacementPOSTjson
{
"pdf_zip": "base64_encoded_zip_file",
"replacement_data": "base64_encoded_json_string",
"preserve_original_fonts": true
}
json
{
"status": "success",
"data": "base64_encoded_output_zip"
}
This project is licensed under the AGPL License due to its dependency on PyMuPDF, which is licensed under AGPL. For more details, see the AGPL-3.0 License.
Developed and maintained by Gleematic Pte. Ltd.