9 Replies Latest reply on Jul 7, 2009 7:06 AM by gkaiseril

    FDF does not update the Formdata

    do not cry

      Hello,

      in php I wrote a a smal script to generate a fdf file but the form does not show the data. I am pretty sure that the code is correct and the fields exists in the pdf.

       

            // getdata.php
            $fdf_out='C:\PHPCode\Medi\results\test1.fdf';
            $pdf_doc='http://localhost/test2.pdf';       
            $outfdf = fdf_create();
            fdf_set_value($outfdf, "Textfeld1", 'mein Text', 0);
            fdf_set_value($outfdf, "DatumsUhrzeitfeld1",date('Y-m-d H:i:s'), 0);
            fdf_set_file($outfdf, $pdf_doc);
            fdf_save($outfdf, $fdf_out);
            fdf_close($outfdf);
            Header("Content-type: application/vnd.fdf");
            $fp = fopen($fdf_out, "r");
            fpassthru($fp);
            unlink("test1.fdf");
      

      after pressing the submitbutton (http://localhost/getdata.php#FDF). I can see a data tramsmission but no new data.

      Could I have missed something? LiveCycleDesigner Option?

      I there a way to debug the calling PDF to see what is being done?

       

      thanks a lot, this is bugging me since 2 days now..

       

      edgar