HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Rendering chart image in PDF › Re: Re: Rendering chart image in PDF
July 22, 2009 at 19:48
#27394
can not embed https://xxxxxxPieChartServlet?Title=May+30%2C+2003&points=2.5%2CCASH%7E1.6%2CMM+FUND%7E71.7%2CFIXED%7E24.2%2CMUTUAL. PNG should not have more than 256 colors. Reformatting image…done in 5592ms.
PDF creation done.
Your suggestions were extremely helpful.
As it turns out, the issue was a combination of bad path information and the white space between some of the servlet parameters. Once thoses issues were resolved, PD4ML was able to resolve the chart image (which was PNG). It complained about there being an excess number of colours and then reformatted the image, but it now shows up in the PDF. Here is the new debug info:
image not yet in cache: https://xxxxxxPieChartServlet?Title=May+30%2C+2003&points=2.5%2CCASH%7E1.6%2CMM+FUND%7E71.7%2CFIXED%7E24.2%2CMUTUAL not yet in cache: https://xxxxxxPieChartServlet?Title=May+30%2C+2003&points=2.5%2CCASH%7E1.6%2CMM+FUND%7E71.7%2CFIXED%7E24.2%2CMUTUAL image size: 5795
can not embed https://xxxxxxPieChartServlet?Title=May+30%2C+2003&points=2.5%2CCASH%7E1.6%2CMM+FUND%7E71.7%2CFIXED%7E24.2%2CMUTUAL. PNG should not have more than 256 colors. Reformatting image…done in 5592ms.
PDF creation done.
Thanks a whole bunch for your help!!
Cheers,
-Ade O
