Thursday, 15 September 2011

yii - php-pdftk extension is not working on Windows -


I am using Yii 2 and XAMPP on the Windows 7 Home Edition box and trying to use PDF form I have downloaded pdftk and installed it and have binaries in libiconf2.dll and pdftk.exe C: \ Program Files (x86) \ PDFtk \ bin \

This is my code in the controller (similar to the sample given in the above extensions)

  Usage Mikehurl \ Pdftk \ Pdf; Public Function Action Index () {// Fill the form with the data form $ pdf = new.pdf ('form.pdf'); $ Pdf- & gt; Bharufaram (array ('name' = & gt; 'John do')) - & gt; Requirements Appointments () - & gt; Savage ('loaded PDF'); }  

But it does not work, nothing happens, nothing at all!

form.pdf The file is in the Webroot directory: C: \ xampp \ htdocs \ MyWebsite \ form.pdf .

It seems, my PHP script can not be found only for PDFfeaker binaries. I have tried to put them in the seller \ bin directory without any success.

As a newbie, I do not know that pdftk binaries and /


No comments:

Post a Comment