https://github.com/praptisharma28/gotenberg-pdf-generation
A FastAPI application for PDF generation using Gotenberg. This repository can convert urls, csv files, html pages to pdfs, along with merging normal/image pdfs.
https://github.com/praptisharma28/gotenberg-pdf-generation
fastapi gotenberg html5 pdf pdf-generation python3 uvicorn
Last synced: 2 months ago
JSON representation
A FastAPI application for PDF generation using Gotenberg. This repository can convert urls, csv files, html pages to pdfs, along with merging normal/image pdfs.
- Host: GitHub
- URL: https://github.com/praptisharma28/gotenberg-pdf-generation
- Owner: praptisharma28
- Created: 2025-01-28T10:01:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-30T11:52:16.000Z (over 1 year ago)
- Last Synced: 2025-03-30T21:45:41.450Z (over 1 year ago)
- Topics: fastapi, gotenberg, html5, pdf, pdf-generation, python3, uvicorn
- Language: Python
- Homepage:
- Size: 612 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gotenberg-pdf-generation
A FastAPI application for PDF generation using Gotenberg.
## Prerequisites
Make sure you have the following installed on your system:
- Python 3.7 or higher
- pip (Python package manager)
---
## Setup Instructions
### 1. Clone the Repository
Clone this repository to your local machine:
```bash
git clone https://github.com/praptisharma28/gotenberg-pdf-generation.git
cd gotenberg-pdf-generation
```
### 2. Create a Virtual Environment
Create a virtual environment to isolate the dependencies:
```bash
python3 -m venv venv
```
Activate the virtual environment:
- **For Linux/Mac**:
```bash
source venv/bin/activate
```
- **For Windows**:
```bash
venv\Scripts\activate
```
### 3. Install Dependencies
### 4. Run the FastAPI Application
Start the FastAPI application using `uvicorn`:
```bash
uvicorn main:app --reload
```
- Replace `app.main:app` with the correct module and app name if your structure is different.
- By default, the application will run on `http://127.0.0.1:8000`.
## API Documentation
FastAPI provides interactive API documentation by default. You can access it in your browser:
- Swagger UI: `http://127.0.0.1:8000/docs`
- ReDoc: `http://127.0.0.1:8000/redoc`
---
## Deactivating the Virtual Environment
Once you are done, deactivate the virtual environment:
```bash
deactivate
```
---
## License
This project is licensed under the MIT License.