leo.bonnafe Posted February 5, 2009 Share Posted February 5, 2009 Hello all I have just come across a new project that allows you to generate PDF, DOCX and DOC files with PHP. All you have to do, is create a template in Open Office (or Word). In the template, you create the layout of the document and insert a number of text fields. These text fields are then populated with data from PHP and the document can be saved as a PDF file or in any other supported format. The concept is good old "mail-merge". http://www.phplivedocx.org/articles/brief-introduction-to-phplivedocx/ From the web sites' blurb: "phpLiveDocx allows developers to generate documents by combining structured data from PHP with a template, created in a word processor. The resulting document can be saved as a PDF, DOCX, DOC or RTF file." I am currently adding phpLiveDocx to an online store I am working on. The customer wants his store to create an invoice and sent it by e-mail as a PDF attachment. The invoice should use the same template file that is used in the internal accounting software (which is a DOC file). phpLiveDocx works well and it is much easier to get good results than with FPDF, TCPDF or Zend_Pdf. Download here: http://www.phplivedocx.org/downloads/ Have fun :-) Leo Link to comment https://forums.phpfreaks.com/topic/143898-generate-pdf-docx-and-doc-with-php/ Share on other sites More sharing options...
DarkSuperHero Posted February 5, 2009 Share Posted February 5, 2009 promoting a third party script? so, you dont need help? Im a bit confused... :-) Link to comment https://forums.phpfreaks.com/topic/143898-generate-pdf-docx-and-doc-with-php/#findComment-755082 Share on other sites More sharing options...
leo.bonnafe Posted February 5, 2009 Author Share Posted February 5, 2009 Hi DarkSuperHero I would like to OFFER help to anyone who has tried phpLiveDocx. I found the library a week ago and have since added it to an online store in which I create a PDF invoice (using a DOC template file). I really like the library and just wanted to share with the rest of the community :-) Leo Link to comment https://forums.phpfreaks.com/topic/143898-generate-pdf-docx-and-doc-with-php/#findComment-755107 Share on other sites More sharing options...
waynew Posted February 5, 2009 Share Posted February 5, 2009 This is advertising. Link to comment https://forums.phpfreaks.com/topic/143898-generate-pdf-docx-and-doc-with-php/#findComment-755129 Share on other sites More sharing options...
Mark Baker Posted February 5, 2009 Share Posted February 5, 2009 This is advertising.And very excessive at that.... responding to threads that can be resolved by his product, but that may be over a year old in some cases, and across a whole range of PHP development and support boards. I thought I was sometimes borderline in responding to posts where my own development projects provide a solution, but I don't trawl back in history to resurrect old threads. Link to comment https://forums.phpfreaks.com/topic/143898-generate-pdf-docx-and-doc-with-php/#findComment-755355 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.