Hi,
Jpgraph is just a PHP library. Download the package, upload it to your PDF_EXTENDED_TEMPLATES
directory and follow their guide for generating a chart (your code should go in your PDF template file).
Thread Starter
pjcseo
(@pjcseo)
Thank you very much for the prompt reply.
I’ll mark this issue as resolved.
I’ve been looking for instruction on how to install this, is there any further details you can provide? I uploaded the file to my PDF_EXTENDED_TEMPLATES directory, and followed the documentation to try and load a test graph
http://mpdf1.com/manual/index.php?tid=364
But I just get a blank screen from this, I even used “view page source” and there is still nothing there. Any suggestions would be very much appreciated. Or if there is another program available to accomplish this, that would be great as well.
Ignore the documentation on mPDF regarding JpGraph and instead follow the JpGraph documentation for correctly setting up and configuring the software.
We prefer to save the image to disk directly from the PDF template and then call it using an <img>
tag, but you can also keep your image generation script separate. The JpGraph docs go into more details.
Regarding the “blank screen” it sounds like a PHP error. Set WP_DEBUG
to true
while developing your template to see any problems.