Re: Re: Re: Working with an existing PDF doc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I believe the id or name of the html elements must match the name of
each field in the pdf. On monday, at work, i'll go over my code to see
for sure. But i'm sure the name of each html element matches the field
in the html form. The names of the fields in the pdf can be anything
you like,  i used this format {$fieldname} but can be anything.

On 9/2/06, tedd <tedd@xxxxxxxxxxxx> wrote:
Silent1:

I know how to create a pdf document from a html form, see:

http://xn--ovg.com/pdf

The only part I don't have here is how to set-up a pdf with the
correctly stated fields -- what form do the fields take [name],
[@name], ???

For example, the link you gave me provides a pdf with awaiting
fields, a html form that contains those fields, and php code to
insert those fields into the pdf, but not a description of what those
fields must be inside the pdf document for the code to find and
replace them.

Please send your example, that may help.

Thanks very much for your help.

tedd



>Sorry, i was at work but the example i followed is located here.
>http://www.accesspdf.com/article.php/20050510131850979
>
>Once you have pdftk compiled/setup this script in the example will
>pass the post/get data to the pdf to each field you setup in the pdf.
>If need be, i can send you the php i've created based on the example
>above. BTW if you're not familiar with pdf's, as i wasn't, you
>basically setup in the pdf fields (just like html forms) with names
>that you pass data to. You will also need adobe acrobat pro to be able
>to edit the pdf's. Hope this helps.
>
>
>On 9/1/06, tedd <tedd@xxxxxxxxxxxx> wrote:
>>Silent1:
>>
>>That sounds like what I need, but from what I've read (no offense),
>>it's not possible.
>>
>>Do you have an example?
>>
>>tedd
>>
>>
>>>I actually just finished messing around with something like this.
>>>Basically the task was to have a form where users would input stuff
>>>and that needs to be autofilled into a pdf (already created). I used
>>>pdftk (http://www.accesspdf.com/pdftk/) and a php script called
>>>(forge_fdf http://www.pdfhacks.com/forge_fdf/) which would dump the
>>>data to the pdf.
>>>
>>>I took the pdf i was given and I added fields to the original pdf that
>>>would get filled in from the form. pdftk allows to to completly
>>>control the pdf, add passwords (user and owner) and restrict the pdf
>>>(edit,print,view) and encrypt it and even flatten the fields.
>>>
>>>
>>>On 8/31/06, tedd <tedd@xxxxxxxxxxxx> wrote:
>>>>Hi gang:
>>>>
>>>>I can create a pdf document "on-the-fly" pretty easily, as shown here:
>>>>
>>>>http://xn--ovg.com/pdf
>>>>
>>>>However, what I need is to find out how to open an existing pdf
>>>>document and insert data into it -- does anyone have any experience
>>>>in doing this, or references they can point me to?
>>>>
>>>>As always, mondo thanks for those who reply.
>>>>
>>>>tedd
>>>>--
>>>>-------
>>>>http://sperling.com  http://ancientstones.com  http://earthstones.com
>>>>
>>>>--
>>>>PHP General Mailing List (http://www.php.net/)
>>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>--
>>-------
>>http://sperling.com  http://ancientstones.com  http://earthstones.com


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux