https://github.com/peterdee/pdf-converter
PDF converter service
https://github.com/peterdee/pdf-converter
fiber go go-fiber golang grpc imagemagick pdf protobuf
Last synced: 7 months ago
JSON representation
PDF converter service
- Host: GitHub
- URL: https://github.com/peterdee/pdf-converter
- Owner: peterdee
- License: mit
- Created: 2024-02-22T12:56:15.000Z (over 1 year ago)
- Default Branch: release
- Last Pushed: 2024-03-28T11:18:09.000Z (over 1 year ago)
- Last Synced: 2025-01-21T10:11:14.082Z (9 months ago)
- Topics: fiber, go, go-fiber, golang, grpc, imagemagick, pdf, protobuf
- Language: Go
- Homepage: http://localhost:8000
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## pdf-converter
Convert PDF files into JPEG images using Golang
This repository contains 2 microservices: [`api-interface`](./api-interface) and [`converter`](./converter)
`api-interface` provides REST APIs via HTTP to queue PDF conversion and get the resulting archive
`converter` converts queued PDF files and returns ZIP-archive after PDF has been converted
Microservices are connected via gRPC, conversion queue is implemented using MongoDB, PDF files are converted into JPEG using ImageMagick
### Deploy
Clone the repository:
```shell script
git clone https://github.com/peterdee/pdf-converter
cd ./pdf-converter
gvm use 1.22.0
```Additional deployment and launching instructions are available in [api-interface/README.md](./api-interface/README.md) and [converter/README.md](./converter/README.md)
### Launch everything with Docker Compose
Everything can be launched with Docker Compose ([docker-compose.yml](./docker-compose.yml))
Create `.env` files for `api-interface` and `converter` microservices before the launch
```shell script
docker compose up
````api-interface` application will be available at http://localhost:8000
### License
[MIT](./LICENSE.md)