[Cartoweb-users] exportPdf - Trying to get property of non-object

Bruno Friedmann bruno at ioda-net.ch
Mon Sep 15 14:40:33 EDT 2008


Νίκος Παπαδάκης wrote:
> Hi all.
> 
> I try to use the exportPdf plugin.
> 
> I enable it in client.ini and <myproject>.ini and create the
> exportPdf.ini file in client_conf.
> For start i try to print to pdf only the mainmap.
> I write in the exportPdf.ini all possible values found in the manual
> since most of them are mandatory.
> 
> I quote the contents of this file.
> But when i run the project i get the message...
> 
> CartoWeb version: 3.4.0 [$Revision: 1.7 $]
> class:   CartocommonException
> message:   Error [8, Trying to get property of non-object,
> C:\ms4w\apps\cartoweb3\plugins\exportPdf\client\ClientExportPdf.php, 906]
> 
> I checked many times the syntax and probably the error is not there
> 
> I didn't find any similar mail in the archives.
> Thank You.
> 
> 
> 
>    --exportPdf.ini--
> 
> 
> ;general settings
> 
> general.guiMode=classic
> general.formats=A4,A3
> general.defaultFormat=A4
> general.reolutions=96,150,300
> general.defaultResolution=96
> general.scales=1000,2000,4000,10000
> general.defaultScale=4000
> general.defaultOrientation=landscape
> general.activatedBlocks=mainmap
> general.overviewScaleFactor=10
> general.overviewColor=black
> general.overviewOutlineColor=red
> general.showRefMarks=false
> general.pdfEngine = CwFpdf
> ;general.pdfVersion= 1.3
> general.output = attachment
> general.filename="volos.pdf"
> general.distUnit=mm
> general.horizontalMargin=10
> general.verticalMargin=10
> general.allowedRoles = all
> ;general.importRemotePng=false
> 
> ;formats settings
> 
> formats.A4.label=A4
> formats.A4.bigDimension=297
> formats.A4.smallDimension=210
> formats.A4.horizontalMargin=20
> formats.A4.verticalMargin=20
> formats.A4.maxResolution=300
> formats.A4.allowedRoles=all
> 
> formats.A3.label=A3
> formats.A3.bigDimension=420
> formats.A3.smallDimension=297
> formats.A3.horizontalMargin=30
> formats.A3.verticalMargin=30
> formats.A3.maxResolution=150
> formats.A3.allowedRoles=all
> 
> ;blocks default settings
> 
> template.type=image
> ;template.content=
> template.fontFamily=times
> template.fontSize=12
> template.fontItalic=false
> template.fondBold=false
> template.color=#000000
> template.backgroundColor=#009977
> template.borderWidth=1.25
> template.borderColor=#555555
> template.borderStyle=solid
> template.padding=3
> template.horizontalMargin=5
> template.verticalMargin=5
> template.horizontalBasis=left
> template.varticalBasis=top
> template.hCentered=true
> template.vCentered=true   template.textAlign=center
> template.verticalAlign=center
> template.orientation=horizontal
> template.zIndex=5
> template.weight=5
> template.inNewPage=false
> template.inLastPages=false
> templates.width=200
> templates.height=200
> template.multiPage=false
> ;template.parent=
> template.inFlow=true
> ;template.caption=
> ;template.headers=
> template.allowedRoles=all
> template.i18n=false
> 
> 
> 
> blocks.mainmap.padding = 0
> blocks.mainmap.verticalMargin = 10
> blocks.mainmap.horizontalMargin = 10
> 
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users

There's several times where we discuss about the support of utf-8 in pdf.
Actually fpdf doesn't work very nicely with other stupid iso8859-1 and iso8859-15.

As I suppose you are in utf-8 or iso-8859-2 the trouble could come from here.
If you have the chance to just use ascii/utf-8 string in your pdf template just to be sure the trouble come from there.



-- 

     Bruno Friedmann






More information about the Cartoweb-users mailing list