views:

240

answers:

2

Hello all im beginner in the php world i need to build option in web application that can convert well defined structures into rtf/pdf from txt/html i found using this site search about LiveDocx php component that is dependent on Zend Framework now im not familiar white the php engine ( the parser ) so im asking you experts is it good solution to use this components ? or its just over head ?

A: 

Hello php beginner,

some simple to use tools: if you want the easy approach try dompdf - The PHP 5 HTML to PDF Converter. It might work, depending on your html. you could also try ezPdf.

If you need to parse the html, try php's DOMDocument::loadHTML function. It will give you an object that accepts xpath queries for easy handling.

silverskater
well its dosnt to be html at all , it will be object structurethat will contains the instruction on how to build the pdf/rtf .so i need some kind of php tool that convert to pdf and rtf
A: 

Hi Dear friend: I just want to share my little experience after looking on the net a lot I found http://mpdf.bpm1.com/ this utility is a mix of libraries I´m using it to generate invoices on demand. I expect this can be usefult to you Regards

GMD