Re: Using a jpGraph image in an FPDF pdf output...-SOLVED
| From: | Marek Kilimajer | Date: | Tue, 16 Sep 2003 12:31:07 +0000 |
| Subject: | Re: Using a jpGraph image in an FPDF pdf output...-SOLVED | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162732@lists.php.net to get a copy of this message | ||
fflush did not work?
Jay Blanchard wrote:
[snip] Has anyone ever suceesfully embedded a jpGraph image in an FPDF output? FPDF uses this function for an image $pdfGraph->Image('grfx/image.jpg', 15, 20, 50, 0, 'JPG'); but when image.jpg is created with jpgraph it throws errors. I am sure that I am missing something quite obvious, but alas I cannot see it. [/snip] It appears that the image was not getting fully processed and that the PDF was completing prior to the image itself. Solved this by two-stepping, when the PDF is requested the graph image is processed and saved to the server before a redirect to the PDF. Works like a chaem and the user sees no degredation in performance.