1

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 ?

user63898
  • 29,839
  • 85
  • 272
  • 514
  • hu no i see that this framework is just wrapper around some web service that doing the work of converting to document .. not good at all .. – user63898 Sep 01 '09 at 14:11
  • correct, LiveDocX is a web service, not a built in php module. You may not get too many answers here given your 1% answer acceptance rating – Mark Sep 01 '09 at 15:20
  • livedocx is a soap server, so you can use PHPSoap or nusoap to interact with the service. – Waygood Oct 31 '13 at 15:55

2 Answers2

0

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
  • 821
  • 1
  • 6
  • 7
  • well its dosnt to be html at all , it will be object structure that 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 – user63898 Sep 01 '09 at 14:13
0

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 useful to you.

BenMorel
  • 34,448
  • 50
  • 182
  • 322