I just tried it with the latest csv and couldnt reproduce your problem
does the pdf export works in demoCW3 ? It use png IMAGETYPE.

regards
Oliver


It seems plugin exportPdf has problem with PNG format.
When I change IMAGETYPE in my mapfile from PNG to GIF export works fine.

The same is block.logo.content in exportPdf.ini
when is used PNG image export crashes.



wochter

------------ Pôvodná správa ------------
Od: Oliver Christen <[EMAIL PROTECTED]>
Predmet: Re: [Cartoweb-users] exportPdf doesn't work
Dátum: 31.7.2007 15:22:18
----------------------------------------
it seems fpdf fail to parse the png image.
does the image exist in your generated folder ? and does it look ok? (not zero sized or things like that)

regards
Oliver

----- Original Message ----- From: "WochteR" <[EMAIL PROTECTED]>
To: "cartoweb" <cartoweb-users@lists.maptools.org>
Sent: Tuesday, July 31, 2007 2:35 PM
Subject: [Cartoweb-users] exportPdf doesn't work


> Hi All,
> I'm working on the cvs version and exportPdf doesn't work.
> Could you help me please?
>
> It returns this message:
>
>
> Class : CartocommonException
> Message : Error [2, fread() [function.fread]: Length parameter must be > greater than 0, /var/www/cartoweb3/include/fpdf/fpdf.php, 1587]
> Backtrace:
>
> file: UNKNOWN - UNKNOWN
> call: Common::cartowebErrorHandler(2, "fread() [function.fread]: Length > pa...", "/var/www/cartoweb3/include/fpdf/fpdf.php", 1587, Array(15))
>
> file: 1587 - /var/www/cartoweb3/include/fpdf/fpdf.php
> call: fread(Resource(#761), -2147475583)
>
> file: 914 - /var/www/cartoweb3/include/fpdf/fpdf.php
> call:
FPDF->_parsepng("/var/www/cartoweb3/htdocs/generated/images/46af2bdf_1e03_3.png")
>
> file: 1027 - /var/www/cartoweb3/plugins/exportPdf/client/CwFpdf.php
> call: > FPDF->Image("/var/www/cartoweb3/htdocs/generated/images/46af2bdf_1e03_3.png",

> 20.25, 20.25, 170, 257, "", "")
>
> file: 518 - /var/www/cartoweb3/plugins/exportPdf/client/CwFpdf.php
> call:
CwFpdf->addImage("/var/www/cartoweb3/htdocs/generated/images/46af2bdf_1e03_3.png",

> 20.25, 20.25, 170, 257)
>
> file: 1327 - > /var/www/cartoweb3/plugins/exportPdf/client/ClientExportPdf.php
> call: CwFpdf->addGfxBlock(Object(PdfBlock))
>
> file: 1445 - > /var/www/cartoweb3/plugins/exportPdf/client/ClientExportPdf.php
> call: ClientExportPdf->addBlock(Object(CwFpdf), Object(PdfBlock))
>
> file: 1532 - > /var/www/cartoweb3/plugins/exportPdf/client/ClientExportPdf.php
> call: ClientExportPdf->getExport()
>
> file: 1172 - /var/www/cartoweb3/client/Cartoclient.php
> call: ClientExportPdf->output()
>
> file: 1263 - /var/www/cartoweb3/client/Cartoclient.php
> call: Cartoclient->doExport(Object(ClientExportPdf))
>
> file: 33 - /var/www/cartoweb3/htdocs/client.php
> call: Cartoclient->main()
>
> file: 3 - /var/www/cartoweb3/htdocs/bystrica.php
> call: require_once("/var/www/cartoweb3/htdocs/client.php")
>
>
> thank you
> wochter
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>





_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users


_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to