12-11-2007, 01:57 PM | #1 (permalink) |
Insane
Location: Kansas City, MO
|
Creating .doc and .pdf from php
Okay, so what I am doing is just writing a php script so that a work partner of mine can quickly generate quotes. I've already determined how to handle all of the information. What I am having trouble determining is what to do with it. It should come out in a nice, presentable document. I know the most basic of how to create pdf's using php, but I don't know the optimal route for this, or how to create a word doc at all.
What I want to know is how do I make a working option to output the quote on either word or pdf format. Thanks.
__________________
-Blind faith runs into things!- |
12-11-2007, 02:28 PM | #2 (permalink) |
has a plan
Location: middle of Whywouldanyonebethere
|
I know jack diddly about PHP and creating PDF... other than I must submit all documents as PDFs.
A good friend taught himself PHP from here... and can do damned near anything - http://www.php.net/manual/en/index.php And this is where I get my PDF creator - http://sourceforge.net/projects/pdfcreator/ Sorry I can't help more, it is outside my field.
__________________
|
12-11-2007, 07:52 PM | #3 (permalink) |
Darth Papa
Location: Yonder
|
There's a very nice PHP interface to PDFlib. See http://www.php.net/pdf . Once you've got that going, it's just some trial and error to get the layout to be acceptable.
Little secret: if you generate HTML, put a .doc extension on it, and send it down with the MIME type "application/msword", it'll open just great in recent enough versions of Word. It won't load external images, but it'll do anything you can do in HTML. |
12-12-2007, 09:35 AM | #4 (permalink) | |
Insane
Location: Kansas City, MO
|
Quote:
__________________
-Blind faith runs into things!- |
|
Tags |
creating, doc, pdf, php |
|
|