Current location: Hot Scripts Forums » Programming Languages » PHP » Use php to populate .doc or .pdf

Use php to populate .doc or .pdf

Reply
  #1  
Old 07-02-09, 07:58 AM
Deansatch Deansatch is offline
Coding Addict
 
Join Date: Jul 2006
Location: Northumberland
Posts: 373
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Use php to populate .doc or .pdf

I was wondering if it is possible to create a word document complete with formatting and image effects etc... and then use php to pull text from a database and images from folders and insert them into the preformatted page. Or the same with some sort of pdf template?

This doesn't have to be something that web users will be doing. It will be for them to fill in the details, then I can click on "convert to word" and that users information will be inserted into the relevant parts of the document ready to print.

I know there are ways to convert html to pdf etc... but I don't want to be restricted by html layouts and browser variations.
__________________
Aye!
Reply With Quote
  #2  
Old 07-03-09, 12:08 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 2,632
Thanks: 0
Thanked 15 Times in 15 Posts
You could use FPDF Class.
See -> FPDF
__________________
Jerry Broughton
Reply With Quote
  #3  
Old 07-03-09, 04:39 AM
Deansatch Deansatch is offline
Coding Addict
 
Join Date: Jul 2006
Location: Northumberland
Posts: 373
Thanks: 0
Thanked 0 Times in 0 Posts
I want to insert info into an existing template, NOT create a pdf on the fly. The template MUST have a set layout that will not change because of browser display issues etc...
__________________
Aye!
Reply With Quote
  #4  
Old 07-03-09, 07:08 PM
Jcbones Jcbones is offline
Coding Addict
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 269
Thanks: 3
Thanked 3 Times in 3 Posts
Yes, you can do that.

although, you probably want to use .rtf instead of .doc, for compatibility reasons.

http://www.hotscripts.com/listing/rtf-generator-class/
Reply With Quote
Reply

Bookmarks

Tags
convert, pdf, php, template, word


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 11:17 AM
help with error messages.. please APuppyDog PHP 2 10-06-06 12:09 AM
PHP Not Working ProjectJustice PHP 2 06-25-06 08:37 PM
how to use onclick in php coolcoder HTML/XHTML/XML 2 05-31-06 01:40 PM
PHP Runner , Preview PHP files ! moslehi@gmail.com General Advertisements 3 12-08-04 04:01 PM


All times are GMT -5. The time now is 06:36 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 (Unregistered)