Re: Re: Re: [PHP] Working with an existing PDF doc

2006-09-02 Thread Silent1

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 [EMAIL PROTECTED] 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],
[EMAIL PROTECTED], ???

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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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



Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Frank Arensmeier
You seem to use FPDF. Although I never tried working with FPDF, you  
might take a look at http://fpdi.setasign.de/ which is a class that  
extends FPDF.


If you are looking for a library with support for all PDF features,  
maybe PDFlib (http://www.pdflib.com) is the one for you (sure, PDFlib/ 
PDI costs some money. But if you are looking for a lib that has  
support for everything that the PDF format has to offer, PDFlib is  
definitely the lib you want to use.).


/frank

1 sep 2006 kl. 02.42 skrev tedd:


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



Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Frank Arensmeier

Tedd,

this issue has been discussed recently on the PDFlib mailing list.  
Search for the topic search  replace on PDF. Archive is here:


http://groups.yahoo.com/group/pdflib/

regards,
/frank
1 sep 2006 kl. 16.33 skrev tedd:

You seem to use FPDF. Although I never tried working with FPDF,  
you might take a look at http://fpdi.setasign.de/ which is a class  
that extends FPDF.


If you are looking for a library with support for all PDF  
features, maybe PDFlib (http://www.pdflib.com) is the one for you  
(sure, PDFlib/PDI costs some money. But if you are looking for a  
lib that has support for everything that the PDF format has to  
offer, PDFlib is definitely the lib you want to use.).


/frank


Thanks, your links were right-on.

All I have to do now is figure out how to do a search and replace  
in a PDF document.


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



Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Silent1

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 [EMAIL PROTECTED] 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



Re: Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Silent1

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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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



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



[PHP] Working with an existing PDF doc

2006-08-31 Thread tedd

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