(Fwd) [Cartoweb-users] PDF support

Jacolin Yves yjacolin at free.fr
Mon Jun 12 06:36:46 EDT 2006


Hi,

You have to use the exportPDF plugin. Just add it in your plugin list in 
client.ini file : 
loadPlugins = other plugin, exportPdf

And it in your server_conf/project/project.ini
mapInfo.loadPlugins = exportPdf,other plugin

You need one config file in client_conf/exportPdf.ini :
Here an example :
; **************** Configuration de l'export PDF *****************

; Parametrage general :
general.formats = A4, A3
general.defaultFormat = A4
general.resolutions = 96, 150, 300
general.mapServerResolution = 150
general.defaultResolution = 96
general.overviewScaleFactor = 10

;Activated block [titrelegend,note, overview,copyright, queryResult, page, 
logo]
general.activatedBlocks = title, legend, mainmap, scalebar, scaleval

general.pdfEngine = CwFpdf
general.guimode = classic

general.pdfversion = 1.4
;Output [redirection,inline,attachment,link]
general.output = attachment
general.filename = "Carte-[date,dMY-Hi].pdf"
general.distUnit = mm
generale.horizontalMArgin = 0
general.verticalMargin = 0
general.allowRoles = all
general.importRemotePNG = true

; paramétrage des formats
; Format A4
formats.A4.label = A4
formats.A4.bigDimension = 297
formats.A4.smallDimension = 210
formats.A4.maxResolution = 300

; Format A3
formats.A3.label = A3
formats.A3.bigDimension = 420
formats.A3.smallDimension = 297
formats.A3.maxResolution = 300
formats.A3.allowedRoles = all

; **** Blocks ****

;Titre :
blocks.title.zIndex = 2
blocks.title.weight = 10
blocks.title.verticalBasis = top
blocks.title.verticalMargin = 3
blocks.title.hCentered = true
blocks.title.fontSize = 20
blocks.title.fontItalic = true
blocks.title.fontBold = true
blocks.title.backgroundColor = -eeeeee
blocks.title.height = 10

;Carte principale
blocks.mainmap.height = 120
blocks.mainmap.width = 150
blocks.mainmap.verticalMargin = 70
blocks.mainmap.horizontalMargin = 100
blocks.mainmap.borderWidth = 0.25
blocks.mainmap.zIndex = 1

;ScaleBar
;blocks.scalebar.height = 10
;blocks.scalebar.width = 200
blocks.scalebar.verticalMargin = 192
blocks.scalebar.horizontalMargin = 10
blocks.scalebar.zIndex = 2
blocks.scalebar.inFlow = true
;blocks.scalebar.parent = true
blocks.scalebar.borderWidth = 0

;ScaleVal
blocks.scaleval.height = 10
blocks.scaleval.width = 20
blocks.scaleval.verticalMargin = 10
blocks.scaleval.horizontalMargin = 20
blocks.scaleval.backgroundColor = -eeeeee
blocks.scaleval.parent = true
blocks.scaleval.inFlow = true

;legend
blocks.legend.type = legendp
blocks.legend.zIndex = 2
blocks.legend.height = 10
blocks.legend.width = 30
blocks.legend.verticalMargin = 15
blocks.legend.horizontalMargin = 3
blocks.legend.borderWidth = 1

;titrelegend
blocks.titrelegend.height = 10
blocks.titrelegend.width = 30
blocks.titrelegend.verticalMargin = 15
blocks.titrelegend.horizontalMargin = 3
blocks.titrelegend.borderWidth = 0


;note

;overview
blocks.overview.height = 30
blocks.overview.width = 30
blocks.overview.verticalMargin = 200
blocks.overview.horizontalMargin = 3
blocks.overview.borderWidth = 0.25

;copyright

;queryResult

;page

;logo
;blocks.titrelegend.height = 10
;blocks.titrelegend.width = 30
;blocks.titrelegend.verticalMargin = 15
;blocks.titrelegend.horizontalMargin = 3
;blocks.titrelegend.borderWidth = 0

; parametres par défaut des blocs :
template.type = text
template.fontFamily = times
template.fontSize = 12
template.fontItalic = false
template.fontBold = false
template.fontUnderline = false
template.color = black
template.backgroundColor = white
template.borderWidth = 0
template.borderColor = black
template.borderStyle = solid
template.padding = 3
;template.horizontalMargin = 0
;template.verticalMargin = 0
template.horizontalBasis = left
template.verticalBasis = top
template.hCentered = false
template.zIndex = 1
template.textAlign = center
template.verticalAlign = center
template.orientation = horizontal
; ******************** end of file ****************************

More information here :
http://www.cartoweb.org/doc/cw3.2/xhtml/user.pdf.html

Y.
Le Lundi 12 Juin 2006 12:17, Fabio D'Ovidio a écrit :
> My aim is to add pdf support for print edit results in the current
> displayed page with map, too.
>
> Is it possible ?
>
>
> ------- Forwarded message follows -------
> From:	"Fabio D'Ovidio" <dovidio at planetek.it>
> Organization:	Planetek Italia S.r.l.
> To:	cartoweb-users at lists.maptools.org
> Date sent:	Mon, 12 Jun 2006 11:50:38 +0200
> Priority:	normal
> Subject:	[Cartoweb-users] PDF support
> Send reply to:	dovidio at planetek.it
> 	<mailto:cartoweb-users-request at lists.maptools.org?subject=unsubscribe>
> 	<mailto:cartoweb-users-request at lists.maptools.org?subject=subscribe>
> Keywords:
>
> Hi ML,
> I'd like to add PDF support in demoEdit project.
>
> Could you describe me necessary steps to do this ?
>
> Thank you.
> ***************************************************************************
>*****************
>
>
> Eng. Fabio D'Ovidio
> WebGIS Staff
> Planetek Italia Srl
> via Massaua, 12 - 70123 Bari - Italy
> web : http ://www.planetek.it
> e-mail : dovidio at planetek.it
>
> ***************************************************************************
>***************** ------- End of forwarded message -------
> ***************************************************************************
>*****************
>
>
>  Eng. Fabio D'Ovidio
>  WebGIS Staff
>  Planetek Italia Srl
>  via Massaua, 12 - 70123 Bari - Italy
>  web : http ://www.planetek.it
>  e-mail : dovidio at planetek.it
>
> ***************************************************************************
>*****************

-- 
Yves Jacolin
http://yjacolin.gloobe.org
----
Stagaire Conservatoire Régional des Espaces Naturels de la région Centre
http://cahiersnaturalistes.free.fr/cpnrc/
----
- Qu'est-ce que cela peut faire que je lutte pour la mauvaise cause 
puisque je suis de bonne foi?
- Et qu'est-ce que ça peut faire que je sois de mauvaise foi
puisque c'est pour la bonne cause. (Jacques Prévert)



More information about the Cartoweb-users mailing list