The path you have entered for pdftk is invalid

Created on 30 January 2023, almost 2 years ago
Updated 21 May 2023, over 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 almost 2 years 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 over 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.71.5 2024