473,811 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Sep 24 '05 #1
5 1929
NC
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

Sep 24 '05 #2
Look into the PDFlib "personalizatio n 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

Sep 24 '05 #3
"BKDotCom" wrote:
Look into the PDFlib "personalizatio n 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?

Sep 25 '05 #4
Kevin wrote:
"BKDotCom" wrote:
Look into the PDFlib "personalizatio n 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/

Sep 25 '05 #5
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...

Sep 27 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8100
by: Matt | last post by:
i need to implement a clear button to clear all the fields in the form, but i am thinking i can just use reset button. <input type="reset" name="reset" value="CLEAR"> The first thought is that if there is default value reset and clear will become different. My understanding is that reset means to restore the original page before
6
7742
by: dyw55a | last post by:
How to implement mm/dd/yyyy format for textbox? I have text box with format mm/dd/yyyy. Now I want the cursor i generated whenever user highlight this textbox and whatever user inpu replace one of char in "mm/dd/yyyy" one at a time. I will be appreciated if anyone could give me some idea to implemen this through JavaScript. thanks,
2
11369
by: Bill Cart | last post by:
This is a question from a confused newbe.I have an oldDbCommand component called oleDbCmdAddDemoReq and an oldDbConnection called oleDbConDemoReq on a web form. I have the following code: oleDbConDemoReq.Open(); oleDbCmdAddDemoReq.ExecuteNonQuery(); oleDbConDemoReq.Close(); I get this error message:
5
15489
by: Julia | last post by:
Hi, I need to implement simple runtime form designer,and I would like to ask can and should I use the win form form designer? Thanks in advance.
2
4664
by: James X. Li | last post by:
Is there a way to implement multiple login forms for ASP.NET applications? With our application we want to implement simple login form for normal resources (downloadable files), but more rigorous login forms for tasks like administration and configuration. The current ASP.NET seems only to allow to a single login form via the authentication element in web.config in the root directory. One work-around for our problem is implementing a...
1
1740
by: Invalidlastname | last post by:
Hi, Here is the issue: we have an ASP.NET application which is protected by Form authentication. The web application is hosted in the web-farm environment on multiple web servers. There are several asmx webservices pages used for inter-server communications, e.g. invalidate the cached items, status notifications. Since these asmx pages need to access the same application domain and httpcontext as primary asp.net application, the files...
5
4367
by: Alain Filiatrault | last post by:
Hi, I need to implement a "form.dirty" feature on a VB .NET form not related to a database. I need to know if any of the items (Textboxes, combo, listboxes, ...) was changed. Is there a quick and easy way to do this? Thanks in advance. Alain
1
2021
by: david | last post by:
I have created an ActiveX and load it into the Component in ToolBox in the Visual Studio IDE. After create a web form project (VB.NET), I drag the activeX component into the web form design, set ID and name for it in the property, and the HTML looks like: <OBJECT id="AxCarControlID" style="Z-INDEX: 101; LEFT: 56px; WIDTH: 616px; POSITION: absolute; TOP: 304px; HEIGHT: 120px" classid="clsid:65A0EEC0-745F-11D3-B92E-0020781238D4"...
1
1339
by: Karel Kral | last post by:
Hello, I need to implement a login form before my application starts and the main form shows. Without Application framework (AF) is this simple. In Sub Main I create and execute login form, then (if login is successful) show and start main form. But how to implement this with Application framework enabled? If AF is on, I must set application startup object to form. -- ______________________________________________________
0
9726
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10384
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10395
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10130
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7667
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5553
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4338
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.