http://www.andrewheiss.com/blog/2007/10/06/populating-a-livecycle-pdf-with-php-and-mysql/ #5
Replies: 49 comments 26 replies
-
Hi, Andrew, I think when you create a PDF form with livecycle, you can use Thanks Larry |
Beta Was this translation helpful? Give feedback.
-
Hi, Andrew, I seen above script . nice tutorial but i have one doubt Is it possible to generate pdf document to folder with using same code ? or is it possible to attach pdf document with mail function in php with Is there any solution Please give me suggestion Thanks Jagadeesh |
Beta Was this translation helpful? Give feedback.
-
I found this tutorial and it seems to be just the thing for me, however, Could you either repair the links, let me know what I did wrong, or Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks for repairing the links so quickly. So, I made a small form in LiveCycle Designer 7 and used the dump.php testform%5b0%5d.answers%5b0%5d.CheckBox1%5b0%5d=0&testform%5b0%5d.answers%5b0%5d.HTTPSubmitButton2%5b0%5d= I'm sure that I made a mistake in the form, or haven't configured it Thanks for the assistance! |
Beta Was this translation helpful? Give feedback.
-
Dint work for me your script. It does not post the variables. |
Beta Was this translation helpful? Give feedback.
-
I finally got the insert.php to submit to the database the problem i am The main part of my insert.php looks like this ( not complete for // Connect to server and select database. error_reporting(E_ERROR); // Insert all the data from above into the table in the database // If it worked, say so... else { // Close connection to the database ?> Thanks in advance for your help so far and for later this tutorial |
Beta Was this translation helpful? Give feedback.
-
Andrew thanks for the lesson I had been kicking this dead horse for 6 Thanks in advance for your time devoted to this issue. I am sure there |
Beta Was this translation helpful? Give feedback.
-
Andrew Thanks for the info I had downloaded the latest and but even when I set I am so close but getting so frustrated with this project. I know it is |
Beta Was this translation helpful? Give feedback.
-
Crap Link didnt show up go to this site and you can click on the images [http://rs-sunconst.com/copp...](http://rs-sunconst.com/copper/thumbnails.php?album=4 "http://rs-sunconst.com/copper/thumbnails.php?album=4") |
Beta Was this translation helpful? Give feedback.
-
UPDATE: |
Beta Was this translation helpful? Give feedback.
-
Please help... the fdf does make when i get comment out the unlink command...but i i just cant figure this out. the error i get when the pdf downloads and Warning: system() please help :( |
Beta Was this translation helpful? Give feedback.
-
A couple of other questions... Is there something that could need to be installed on the server which Thank you so much in advance for any type of help you can offer! thank |
Beta Was this translation helpful? Give feedback.
-
I have the IT guy at work seeing if cmd.exe has the correct permissions. Thank you very much for your help! |
Beta Was this translation helpful? Give feedback.
-
The hurdle I run into is that PHPTK must be installed on the server, and On my Apache test server under Windows, everything works just fine. So I can get the data from the PDF to the MySQL database, and I can get |
Beta Was this translation helpful? Give feedback.
-
The only problem I see with that PHP solution is that it doesn't quite In my case I was trying to serve the actual finished PDF so that the |
Beta Was this translation helpful? Give feedback.
-
<a href="viewpdf.php?id=" >View PDF |
Beta Was this translation helpful? Give feedback.
-
sorry I am trying to insert a block of code and it just takes the last |
Beta Was this translation helpful? Give feedback.
-
Is there any I can email you my code it still does not work for me can |
Beta Was this translation helpful? Give feedback.
-
To anyone subscribed to this thread via e-mail: Here's an update on the project: Check it out... Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi Andrew, Excellent work here! I tried this unsuccessfully about a year ago and I I've been able to install your example code on both a Windows Server Problem 1: Problem 2: Line 71: I have tried the suggested correction steps of changing write I'm not a very good coder and I was hoping that there is something very Great work and a great site here! I thank you in advance for your time. Scott |
Beta Was this translation helpful? Give feedback.
-
Hi Andrew. Thanks for the great tutorial. I have hit a snag with this however. If i save my form in LiveCycle as a I need my form to be a dynamic form so I can set the fields to autofit Any solution to this? |
Beta Was this translation helpful? Give feedback.
-
Hi Rik, I had the same issue it is an issue with pdftk. PDFTK won't See for a potential work around You can double check this by seeing if PDFTK will output for pdf form Place your empty PDF form in your main site folder. Open up a command pdftk form.pdf dump_data_fields > form.pdf.fields |
Beta Was this translation helpful? Give feedback.
-
[@niku](http://www.andrewheiss.com/blog/2007/10/06/populating-a-livecycle-pdf-with-php-and-mysql/comment-page-1/#comment-283 "http://www.andrewheiss.com/blog/2007/10/06/populating-a-livecycle-pdf-with-php-and-mysql/comment-page-1/#comment-283") |
Beta Was this translation helpful? Give feedback.
-
Problems Repopulating LiveCycle Forms - Acrobat Forms Work Fine I have taken your example form and converted it into a LiveCycleForm, Is it possible for you to post a working example of a LiveCycle form |
Beta Was this translation helpful? Give feedback.
-
Darrell...I've ran into the same thing, just used acrobat to make the |
Beta Was this translation helpful? Give feedback.
-
I have gotten the STATIC livecycle forms to work with this code. All you have to to-do pass the xfdf or xdf to the pdf via url... This I posted an example of this here |
Beta Was this translation helpful? Give feedback.
-
RE: Problems Repopulating LiveCycle Forms -- Acrobat Forms Work Fine Thanks Jeremy, unfortunately all of my forms have been created in Hedgehog, thank you for the links... I looked at the samples and I see I am sure my problem probably stems from an improperly formated When I run this command: It generates the form-fields.txt report just fine, but when I open and FieldName: I have tried this "as is" to format the $FDF_DATA_STRING as follows:
When I try to download the pdf file, it gives me a 500 internal error I am assuming the extra after each subheading in the DOM path is
This still results in a 500 Internal error. Lastly, rather than finding the fields using pdftk, I open the form form1.#subform[0].Table1.Row1.ShowName (some of the [0] are not listed in the name as reported by LCD)... I Again, if I use Andrew's form made in Acrobat and use the Acrobat I am running Fedora11 with pdftk-1.41-19.fc11.i586, httpd-2.2.11-8.i586 I know it has to be something simple I am missing? Any thoughts? (PS - previous post error... I meant to say I modified the |
Beta Was this translation helpful? Give feedback.
-
Yes I was using the code as is. I haven't tried it since Andrew Are you able to generate the FDF or XFDF ok? This is what I tried. Open the FDF/XFDF with acrobat... It will then ask you to associate Once you get that you can create a script that will do this for you. For example a url like this See |
Beta Was this translation helpful? Give feedback.
-
Downloaded the latest pdftk-php tarball - still problems will post in |
Beta Was this translation helpful? Give feedback.
-
Hello all... \ This tutorial is now defunct and officially archived. Visit [the updated \ Comments on this post are now closed. |
Beta Was this translation helpful? Give feedback.
-
Populating a LiveCycle PDF with PHP and MySQL | Andrew Heiss.com
http://www.andrewheiss.com/blog/2007/10/06/populating-a-livecycle-pdf-with-php-and-mysql/
Beta Was this translation helpful? Give feedback.
All reactions