Sign inSign up

ashwanthkumar/pdf-diff-service

By ashwanthkumar

Updated over 5 years ago

Image
0

364

ashwanthkumar/pdf-diff-service repository overview

pdf-diff-service

Requires Python 3+.

Usage

# Start the service on port 8000
$ docker run --rm -it -p "8000:8000" ashwanthkumar/pdf-diff-service:latest
$ curl --location --request POST 'localhost:8000/diff/' --form 'prev=@/path/to/prev.pdf' --form 'current=@/path/to/current.pdf' > diff.png
# open diff.png to view the actual diff

Development Setup

$ virtualenv --python python3 DENV
$ source DENV/bin/activate
$ pip install -r requirements.txt

# Start the server on localhost:8000/
$ uvicorn main:app --reload --log-level trace

Tag summary

Content type

Image

Digest

Size

408.7 MB

Last updated

over 5 years ago

docker pull ashwanthkumar/pdf-diff-service