Hi all! I want create reports with data of Postgresql to PRINT and/or export to PDF using SQL with variable parameters.

Any program, library php o something to do this?

Thanx!

    I started out using ezPDF (which was abandoned 8 years ago) and apart from only having support for "standard fonts" or whatever they're called (helvetica, times, courier, symbol, dingbat), it worked decently.
    But, as I was suddenly required to use ttf fonts, I hit a brick wall, but found FPDF (F = free). Last update of FPDF was in 2008 iirc, but it does have support for ttf fonts as well, and the documentation is better.

    Both of these were written for PHP 4, which means that you cannot use them without modifications if you have PHP up until 5.1.3 or some such, due to the "var" keyword, which after 5.1.3 was reintroduced to PHP for backwards compatibility and has the same effect as the "public" keyword.

    Zend Framework might handle PDFs as well, so it could be worth checking.

    And then you have PDFLib (costs money) and it's free little brother PDFLib Lite, but I have no idea what limitations there is on Lite.

      Thanx you johanafm!

      Make tables html in FDPF or TCPDF is hard to do, in extended reports. I need something like Crystal Reports.

      Keep searching!

        Write a Reply...