[Cartoweb-users] exportPdf doesn't work

Oliver Christen oliver.christen at camptocamp.com
Tue Jul 31 09:13:45 EDT 2007


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" <wochter at seznam.cz>
To: "cartoweb" <cartoweb-users at 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 at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
> 



More information about the Cartoweb-users mailing list