The path you have entered for pdftk is invalid

Created on 30 January 2023, over 1 year ago
Updated 21 May 2023, about 1 year ago

Problem/Motivation

I am trying to use fillpdf with pdftk, I have followed the docs with this β†’ instructions,
Using this path '/usr/bin/pdftk' as Configure path to pdftk.
with each option of 'Server locale' as "C, C.UTF-8, POSIX", gives this error
"The path you have entered for pdftk is invalid. Please enter a valid path."

Steps to reproduce

install 'drupal/fillpdf:^5.0' and configure it with pdftk

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡΅πŸ‡°Pakistan Allahnoor Turab

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Allahnoor Turab
  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    You probably need to change the path. In your shell, enter which pdftk to see where it has been installed.

  • Status changed to Fixed over 1 year ago
  • πŸ‡΅πŸ‡°Pakistan Allahnoor Turab

    Thanks, Liam Morland, Yes, the tool was installed outside the container.

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed about 1 year ago
  • πŸ‡³πŸ‡ΏNew Zealand glennnz

    Same error for me.

    Running D10 on a local ddev server.

    in Terminal:

    locale gives me "en_NZ.UTF-8"
    which pdftk gives me "/usr/local/bin/pdftk"

    Using those two options on my config page for fillpdf gives me, "The path you have entered for pdftk is invalid. Please enter a valid path. "

  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    You could try putting pdftk without the path. If that doesn't work, there may be something different about ddev which would require some code debugging to fix.

  • πŸ‡³πŸ‡ΏNew Zealand glennnz

    @Liam. Yes, tried that to no avail, it definitely seems to be something with ddev.

    It's working on my live server so I'll test there.

    Thanks

Production build 0.69.0 2024