|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have about twenty small pdf files business card design templates that I want to be able to populate with data from a MySQL database name, phone number, etc and output to the browser/save to the server. The format has to be PDF or another vector format suitable for direct to print use. I have been goggling looking for a simple way to do it and am coming up short. I can not just replace strings in the document because of the way for the format works. Has anyone ever done anything like this before or do I have to hard code the layout of each free templates into my application.
Thanks |
|
||||
|
To my knowledge you cannot update a PDF dynamically like that on the web... HOWEVER...
You can use flash to create and pull data from the database to create the PDF and you can also use HTML2PDF. The later I believe would require you to create the document in HTML (PHP) populate it with the data then use the HTML2PDF to create the final product. I don't know how to do it but I think that Flash might be your best route there... There is also a (new to me anyway) product from Adobe called LiveCycle designer which on a glance appears to create pdf's dynamically from a database not sure if it has online functionality... Let us know here which solution you end up using and the pros and cons, I think it's definitely an awesome idea, and could be of great value to many of us here.
__________________
Ron Boyd search engine optimization (seo), internet consulting, web design :: Follow Me: orionsweb |
|
|||
|
You can use FPDF to generate a PDF from scratch from within PHP, but I don't know of a way to populate an existing PDF.
|
|
|||
|
Yes this is totally possible with FPDF we've used it many times to do what you looking for.
If your looking for some help or need a hand in coding then please let us know. |
|
|||
|
Generate PDFs with PHP
This is an excellent site - Class: classPdf (pdf) - PHP Classes Also, if you generate xml code, you can display it in any format you want. This takes knowledgeof xslt and schema's, however, but your code can be served in any format including for smart phones, or direct input into a Db, nomatter which kind Last edited by mikmik; 10-10-2007 at 05:57 PM. Reason: Added thoughts |
|
||||
|
Yes, It is completely possible to generate PDF files on the fly in your server side scripts however the information is quite limited when it comes to updation of existing PDF documents. Have a look at the following article which has information and various tools to generate PDF files in PHP.
Generate PDF files in PHP - HTML to PDF Conversion Sincerely, Ajay Chadha (Director) Chadha Software Technologies
__________________
PHPKB Knowledge Base Script, Custom Toolbar Development, Search Scripts Directory |
|
||||
|
Since it is possible to convert HTML code to PDF using the information provided at the link below so I'd suggest you to keep the templates of your business cards in HTML format and when the data is updated then generate PDF of that HTML format.
Generate PDF files in PHP - HTML to PDF Conversion Sincerely, Ajay Chadha (Director) Chadha Software Technologies
__________________
PHPKB Knowledge Base Script, Custom Toolbar Development, Search Scripts Directory |
|
|||
|
|
|
|||
|
UK company Iceni has technology called InfixServer that will take PDF template documents then populate with either text, images or PDF files. Server based riven by an XML interface - so easy to generate from PHP.
See Untitled Document Note - I sometimes work with Iceni which is why I have an Iceni e-mail address. |
|
|||
|
You use FPDF for solving your problem.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| web graphic and web templates | navjeet | Graphics & Design Discussion Forum | 1 | 08-26-2007 07:28 PM |
| Blogger Templates | arpecop | Submit Your Site For Review | 1 | 01-16-2005 07:38 PM |
| www.web-templates.se | hernlind | Domain Discussion Forum | 0 | 12-09-2004 02:28 PM |
| Web templates, good or bad? | webmidwife | Graphics & Design Discussion Forum | 10 | 10-27-2004 04:57 PM |
| web site templates - ? | mark93 | Graphics & Design Discussion Forum | 4 | 08-18-2004 06:57 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |