![]() |
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. |
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. |
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. |
Quote:
|
All times are GMT -8. The time now is 04:55 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project