https://github.com/chanmo/docker-poppler
A simple RESTFul API service for poppler
https://github.com/chanmo/docker-poppler
pdftocairo pdftohtml pdftoppm pdftotext poppler
Last synced: 9 days ago
JSON representation
A simple RESTFul API service for poppler
- Host: GitHub
- URL: https://github.com/chanmo/docker-poppler
- Owner: ChanMo
- License: mit
- Created: 2023-09-08T02:02:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-19T08:33:22.000Z (over 1 year ago)
- Last Synced: 2025-05-12T17:04:28.630Z (9 days ago)
- Topics: pdftocairo, pdftohtml, pdftoppm, pdftotext, poppler
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Poppler
A simple http api service for poppler, include `pdftohtml`, `pdftotext`, `pdfinfo`, `pdftoppm`, `pdftocairo`
For more tools to help you manage and use your documents, visit [Awesome Document](https://www.chanmo.me/awesome_document.html)
Need more format converting tools ?
- [chanmo/pandoc](https://github.com/ChanMo/docker-pandoc)
- [chanmo/unoserver](https://github.com/ChanMo/docker-unoserver)## Usage
pull the docker image
```
docker pull chanmo/poppler
```start a http server
```
docker run --rm -p 5000:5000 chanmo/poppler
```convert a pdf file to the html format
```
http -f POST :5000/pdftohtml file@/path/to/file.pdf -o demo.html
```convert a pdf file to the text string
```
http -f POST :5000/pdftotext file@/path/to/file.pdf
```convert a pdf file to multiple images
```
http -f POST :5000/pdftocairo file@/path/to/file.pdf
```get a pdf file information
```
http -f POST :5000/pdfinfo file@/path/to/file.pdf
```## TODO
- [ ] add pdfgrep
- [ ] add params