-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated instructions with docker download instructions and curl instr…
…uctions
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
``` |