You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title suggests - $data = $pdf->getDataFields() gives $data a boolean value, according to php's gettype(). Shouldn't it be an array with the loaded pdf's form fields?
Specifically, if I try to get the data as an array - as per the readme.md file, I get this:
Fatal error: Uncaught Error: Call to a member function __toArray() on boolean
Edit: Got a hint - it's not loading pdftk properly: sh: pdftk: command not found. If it doesn't find the executable, should getDataFields() return a boolean?
2nd Edit: rephrasing question - now i've told the library where the executable is as per this issue, but the script just gets stuck - I can see it's loading, but it never finishes. Thought this might have something to do with this, not sure where this stands right now, and if you rolled back the changes or not. I'll try this tomorrow as well, hope it fixes it.
On a side note - looking through the issues I'm realising how much you guys maintain this thing. Again, thank you, truly - if I'd have to write this from scratch it would be a real pain.
The text was updated successfully, but these errors were encountered:
OK, seems like pdftk itself hangs for eternity when trying to perform any action. This solved it. That is a 2013 version of the software, which I hope is compatible with your library. Thanks, closing.
Hiya, and thanks for this library! Great help.
As the title suggests -
$data = $pdf->getDataFields()
gives$data
a boolean value, according to php'sgettype()
. Shouldn't it be an array with the loaded pdf's form fields?Specifically, if I try to get the data as an array - as per the
readme.md
file, I get this:Fatal error: Uncaught Error: Call to a member function __toArray() on boolean
Edit: Got a hint - it's not loading
pdftk
properly:sh: pdftk: command not found
. If it doesn't find the executable, shouldgetDataFields()
return a boolean?2nd Edit: rephrasing question - now i've told the library where the executable is as per this issue, but the script just gets stuck - I can see it's loading, but it never finishes. Thought this might have something to do with this, not sure where this stands right now, and if you rolled back the changes or not. I'll try this tomorrow as well, hope it fixes it.
On a side note - looking through the issues I'm realising how much you guys maintain this thing. Again, thank you, truly - if I'd have to write this from scratch it would be a real pain.
The text was updated successfully, but these errors were encountered: