Skip to content

Commit

Permalink
updated instructions with docker download instructions and curl instr…
Browse files Browse the repository at this point in the history
…uctions
  • Loading branch information
pvrpccc committed Jan 6, 2018
1 parent 77420b1 commit bcd7802
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ E.g. Any src or href that does not start with @FILE: will cause the service to e
This assumes that the docker image was deployed to localhost on port 9021 and that you are in the test directory of this project where there are two files: one named watermark.pdf and another named my.pdf.

```bash
curl -F "[email protected]" -F "[email protected]" http://localhost:9021/watermark > watermarked.pdf
cd test
curl -F "[email protected]" -F "[email protected]" http://localhost:9021/watermark > watermarked.pdf
```

## Example call from CURL in PHP
Expand All @@ -65,11 +66,11 @@ This assumes that the docker image was deployed to localhost on port 9020 and th
If you wanted to build and test this yourself

```bash
docker build --rm -t yournamespace/docker-node-pdf-watermarker .
docker build --rm -t paulvisco/docker-node-pdf-watermarker .

docker run -d \
--name pdf-watermarker \
--restart=always \
-p 9021:9021 \
yournamespace/docker-node-pdf-watermarker
paulvisco/docker-node-pdf-watermarker
```

0 comments on commit bcd7802

Please sign in to comment.