how to implement such a PDF form

This is a discussion on how to implement such a PDF form within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I am developing a web site with PHP and MySQL. There are many forms that need to be generated based ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-24-2005
Kevin
 
Posts: n/a
Default how to implement such a PDF form

I am developing a web site with PHP and MySQL.
There are many forms that need to be generated
based on users' information in database, and
then let users to complete the rest. Finally
the users can print and sign the forms.
I think a good way to implement this application
is to use Adobe Acrobat to compose form templates
in advance. When a user request a form by
internet, I will make a copy of its template,
and fill some pre-designed entries with his info
from the database, and then let him to view it.

My questions are
1) how can I fill these pre-designed entries with
PHP?
2) Is there any other better way to implement the
application?

Thank you

Kevin


Reply With Quote
  #2 (permalink)  
Old 09-24-2005
NC
 
Posts: n/a
Default Re: how to implement such a PDF form

Kevin wrote:
>
> I am developing a web site with PHP and MySQL.
> There are many forms that need to be generated
> based on users' information in database, and
> then let users to complete the rest. Finally
> the users can print and sign the forms.
> I think a good way to implement this application
> is to use Adobe Acrobat to compose form templates
> in advance.


Not really... PDF is not like your normal word processing
format. If your template contains the word "name", you may
not be able to find it if you open your template in a
plain-text editor.

> When a user request a form by internet, I will make
> a copy of its template, and fill some pre-designed
> entries with his info from the database, and then
> let him to view it.


If you want PDF output not modifiable by user, your best
bet is to generate PDF from scratch using ClibPDF functions,
or PDF functions, or a pure-PHP alternative such as FPDF.

You could use PDF forms, but they are user-modifiable, so
there will be no guarantee that the signed form will contain
the same data as your database.

> My questions are
> 1) how can I fill these pre-designed entries with PHP?
> 2) Is there any other better way to implement the application?


I would say that your best bet is to generate PDF from
scratch. If you insist on using templates, Rich Text Format
(RTF) may suit you better; however, write protection will be
more difficult to achieve.

Cheers,
NC

Reply With Quote
  #3 (permalink)  
Old 09-24-2005
BKDotCom
 
Posts: n/a
Default Re: how to implement such a PDF form

Look into the PDFlib "personalization server"
it basically lets you easily create templates in Acrobat via a plugin
then use their php library to insert stuff into the template.
I haven't used it, but I'm looking into it.
BTW. it's commercial ware
the freeware ver without these helpful abilties is bundled with PHP
http://www.pdflib.com/products/pdflib/pps.html

Reply With Quote
  #4 (permalink)  
Old 09-25-2005
Kevin
 
Posts: n/a
Default Re: how to implement such a PDF form

"BKDotCom" wrote:
> Look into the PDFlib "personalization server"
> it basically lets you easily create templates in Acrobat via a plugin
> then use their php library to insert stuff into the template.
> I haven't used it, but I'm looking into it.
> BTW. it's commercial ware
> the freeware ver without these helpful abilties is bundled with PHP
> http://www.pdflib.com/products/pdflib/pps.html
>


Thank you. The PDFlib product could be an option, though I am not
sure if it is too expensive. Any other suggestions from any one?



Reply With Quote
  #5 (permalink)  
Old 09-25-2005
Sacs
 
Posts: n/a
Default Re: how to implement such a PDF form

Kevin wrote:
> "BKDotCom" wrote:
>
>>Look into the PDFlib "personalization server"
>>it basically lets you easily create templates in Acrobat via a plugin
>>then use their php library to insert stuff into the template.
>>I haven't used it, but I'm looking into it.
>>BTW. it's commercial ware
>>the freeware ver without these helpful abilties is bundled with PHP
>>http://www.pdflib.com/products/pdflib/pps.html
>>

>
>
> Thank you. The PDFlib product could be an option, though I am not
> sure if it is too expensive. Any other suggestions from any one?
>
>
>


As NC mentioned, try FPDF. I've had good success with it, and the price
is right. $0 :-)

http://www.fpdf.org/

Reply With Quote
  #6 (permalink)  
Old 09-27-2005
Bugz
 
Posts: n/a
Default Re: how to implement such a PDF form

You could look into flash paper...
Flash has a remarkable printing capability... and it gives you the
general look and feel of PDF documents without having to use acrobat or
any other viewer...
And since we're talking flash, it's easy to insert values into it...

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0