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.


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to