This topic is locked
[SOLVED]

 PDFForms template

9/11/2020 8:10:19 PM
PHPRunner General questions
R
rholder author

I hope this is the correct forum for this. If not, please advise.
I recently purchased the PDFForms template, and am having issues implementing functions like deploying a PDF and emailing it.
What I have done successfully:

  • I have created a PDF with the appropriate fields.
  • I have uploaded the PDF and mapped the fields.
  • I have tested the SQL on the "Forms" page, of the template.
  • I have created a filled in PDF document, on the "Forms" page of the template.


What I am unable to do:

  • Following "Extensibility" at https://xlinesoft.com/pdfforms
  • Now it is time to do something that is actually useful. After you added PDFForms template to your project you can manipulate PDF forms from your events and buttons. You can use these functions in any server-side event.
  • $res = showFormInBrowser($formname, $keys, $pathfile)
  • $res = sendFormtoEmail($formname, $keys, $pathfile, $emailopt)
  • I get an error "/CorrectPathToFile/include/pdfform_functions.php on line 100"



I opened a support ticket asking how to implement the above functions, and was directed to the page linked above, which certainly makes it look simple. However, I have had no success, and imagine I am missing something simple.
Has anyone implemented this template and can show me example of how it was accomplished?
Any assistance would be appreciated.
Cheers.

Bobby

R
rholder author 9/17/2020

Found the main issue:
Turns out that the path to "pdftk" isn't actually looking for just an absolute path.
In order to get the form to be populated, other than in the set-up, I had to set the path as "../../../../../../../../../../../../../../../../../../../../../../usr/bin/pdftk", which gets around using just "/usr/bin/pdftk" which didn't work.
Hope this helps if anyone else has the same issue.
Cheers.

Bobby
NOTE: I tried to mark this is topic as "Solved", but it says I don't have permission to do so.