Hello,

the image type is detected using PHP function getimagesize()
http://php.net/getimagesize
According to the doc, type=1 corresponds to GIF format!?
Pehaps a weird setting somewhere in your config that makes GIF icon marked as PNGs?

Since CW3.2, GIF images are allowed in generated PDFs but I've found out that it was not the case for the legend items (because of this type detection we are talking about). I've recently commited a fix in CartoWeb CVS. Maybe you could test with it? (updating plugins/exportPdf/client/CwFpdf.php should be OK as well)

> When I set blocks.legend.type = legendp I have no error, but either no legend on my pdf

"legendp" is not a recognized block type, then the block is ignored.

AS

Antonio Camaiani wrote:
If you are using CW 3.2.0 you may replace the following lines in plugins/exportPdf/client/CwFpdf.php:
[...]
and post the resulting error message on this list.


here's the result:
Class : CartoclientException
Message : unsupported format (type=1) for icon: 
/var/www/renomodemo/htdocs/generated/icons/italymaps/italymaps/sp_confini_comunali_class_0.png
 (layer: sp_confini_comunali)
Backtrace:

I get this error with each layer I try to print
and with blocks.legend.type = legend in client_conf/ExportPdf.ini
When I set blocks.legend.type = legendp I have no error, but either no legend 
on my pdf
thanks in advance
tony

_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to