wrapper around pdftk to encrypt/decrypt, compress/uncompress and extract form and fill form of pdf
50K+
docker run -p 3000:3000 --rm --name tesseract philiplehmann/pdftk:latest
curl -X POST \
-H 'content-type: application/x-www-form-urlencoded' \
--data-binary "@path/to/my/uncompressed.pdf" \
'http://localhost:3000/compress'
curl -X POST \
-H 'content-type: application/x-www-form-urlencoded' \
--data-binary "@path/to/my/compressed.pdf" \
'http://localhost:3000/uncompress'
curl -X POST \
-H 'content-type: application/x-www-form-urlencoded' \
--data-binary "@path/to/my/file.pdf" \
'http://localhost:3000/encrypt?password=1234&userPassword=asdf&allow=Printing'
options:
curl -X POST \
-H 'content-type: application/x-www-form-urlencoded' \
--data-binary "@path/to/my/encrypted.pdf" \
'http://localhost:3000/decrypt?password=1234'
returns the pdf form fields as json
curl -X POST \
-H 'content-type: application/x-www-form-urlencoded' \
--data-binary "@path/to/my/pdf-form.pdf" \
'http://localhost:3000/data/fields'
returns pdf file information as json
curl -X POST \
-H 'content-type: application/x-www-form-urlencoded' \
--data-binary "@path/to/my/file.pdf" \
'http://localhost:3000/data/dump'
returns pdf form fields as fdf format
curl -X POST \
-H 'content-type: application/x-www-form-urlencoded' \
--data-binary "@path/to/my/pdf-form.pdf" \
'http://localhost:3000/data/fdf'
fills pdf passed values
curl -X POST \
-H 'content-type: application/x-www-form-urlencoded' \
--data-binary "@path/to/my/pdf-form.pdf" \
'http://localhost:3000/form/fill?field1=value1&field2=value2'
arguments:
flag - Enum
fontName
all form fields are passed with the name
https://github.com/philiplehmann/container/tree/main/apps/pdftk
Content type
Image
Digest
sha256:05bd54189…
Size
133.9 MB
Last updated
6 days ago
docker pull philiplehmann/pdftk