Sign inSign up

sfoxdev/pdftk

By sfoxdev

•Updated about 9 years ago

PDFtk in Docker

Image
0

7.9K

sfoxdev/pdftk repository overview

⁠PDFtk

PDFtk is a simple tool for doing everyday things with PDF documents.

Docker Build Status Docker Build Status Docker Build Status Docker Build Status

⁠Usage

⁠Create two directories in your server:

mkdir /opt/pdftk/input

mkdir /opt/pdftk/output

⁠Put your test.pdf file into directory /opt/pdftk/input
⁠Run container:

docker run -d -v /opt/pdftk/input:/input -v /opt/pdftk/output:/output sfoxdev/pdftk /input/test.pdf cat 2 output /output/result.pdf

-/input/test.pdf is the original PDF file

-cat 2 is the page number want to extract

-output /output/result.pdf is the extracted output file

Tag summary

Content type

Image

Digest

Size

114.8 MB

Last updated

about 9 years ago

docker pull sfoxdev/pdftk