This is a simple microservice for on-the-fly PDF conversion to images.
Everything is processed in-memory and no file is written to disk.
docker pull marcobaobao/pdf-convert-microservice
docker run -d -p 8080:8080 --restart=unless-stopped --name pdf-microservice marcobaobao/pdf-convert-microservice
User supplies a PDF as a blob, the services elaborates the image of the first page of the document. Depening on the supplied params the output image can be either into:
- jpeg
- png
- webp
- avif
This microservice is based on the OpenAPI 3.0 specification.
Launch http:https://localhost:8080
to view the related swagger UI
Anonymous metrics are collected.
Go memory stats, goroutines, time_per_conversion_ns
and processed_counter
collected and avaible from /metrics
endpoint.