RE: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED
| From: | Jay Blanchard | Date: | Tue, 16 Sep 2003 11:52:07 +0000 |
| Subject: | RE: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162731@lists.php.net to get a copy of this message | ||
[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.