Mambo uses obstart, so you need to watch out for this if you try to invoke it separately. The place to do it is probably in index.php. For an example of how to do this, you might look at how Alex Kempkins handled this for his sub_template's hacks (posted as a snippet on mosForge).
The FPDF (Free PDF library) does not support image handling, but pdfLIB does. For non-commercial use, the use of pdfLIB is free but it is subject to licensing fees if used commercially.
Emir Sakic (one of the core developers) has a commercial solution for PDF that supports more PDF functions. I have never tried it and have heard no comments from anyone who has.
Interakt released their YAPS PDF library as GNU/GPL under their copyright and it has been implemented on other CMS systems such as Magellan and TYPO3. It does handle png and jpeg images (not gif because of compression licensing restrictions). I believe that it is dependent on Ghostscript for image rendering, but I have heard that it is a good solution.
There are a number of other PDF libraries for PDF out there. I have never tried them.
Quote:
|
Originally Posted by renemt Well, as expected I get an error when running this script...
Some french part about an unexpected FPDF error and then the meaningfull hint " Some data already have been sent to the browser. Can not send PDF file." (or something like this). I gues it's a problem with PHPs output buffering, isn't it?
So I tried to encapsulate the pdf.php in ob_start() and ob_end_flush() but I did not bring the expected effect... The PDF which was sent (if actually any was sent) was corrupted, so Acrobat could not open it.
Any helpfull hints?
Greets,
ReneMT |