Skip to content

Instantly share code, notes, and snippets.

@dougblackjr
Created May 3, 2020 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougblackjr/98713a46724c6b7742b7333dc18844c1 to your computer and use it in GitHub Desktop.
Save dougblackjr/98713a46724c6b7742b7333dc18844c1 to your computer and use it in GitHub Desktop.
Use PDFtk with Laradock
# ADD THESE LINES AFTER LINE 937, BEFORE Configure locale.
RUN mkdir -p /usr/share/man/man1mkdir -p /usr/share/man/man1
RUN apt-get update
RUN apt-get install -y openjdk-11-jdk
RUN apt-get install -y pdftk
@dougblackjr
Copy link
Author

Wrestled with this a long while. If you add these lines to your php-fpm/Dockerfile, you will have access to it in your code. Especially if you are using the mikehaertl/php-pdftk package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment