Hi, Well the style could be because you don't provide a style in the url, this way geoserver uses the default style specified in the layer configuration. So you might want to add the layer style also
And the resolution might be because of the width and height setting wich I think is smaller then the openlayers client width etc. Cheers Kris -----Original Message----- From: fsalas [mailto:[email protected]] Sent: Tuesday, December 01, 2009 3:30 PM To: Kris Geusebroek Cc: [email protected] Subject: [OpenLayers-Users] How Print openlayer Maps into pdf documents Kris, I continue with this problems, I make one function for a print to pdf but, the map is not similar ,for example the point icons that show in pdf is poi style Instead my style , and also the resolution in pdf document is very low. ¿ How resolve this problems? This is my function function Imprimir() { var ext = map.getExtent(); var minx = ext.left; var miny = ext.bottom; var maxx = ext.right; var maxy = ext.top; var Cadena = "http://urano:3128/geoserver/wms?bbox="+minx+","+miny+","+maxx+","+maxy+"&styles=&Format=application/pdf&request=GetMap&version=1.1.1&layers="; for(var i = 0; i < map.layers.length; i++) {if(i < map.layers.length - 1) Cadena += map.layers[i].params.LAYERS+","; else Cadena += map.layers[i].params.LAYERS; }Cadena += "&width=400&height=300&srs=EPSG:4267"; window.open(Cadena); } thanks , Regards , Salas ----- Original Message ----- From: "fsalas" <[email protected]> To: "Kris Geusebroek" <[email protected]>; <[email protected]> Sent: Thursday, September 03, 2009 12:22 PM Subject: Re: [OpenLayers-Users] How Print openlayer Maps into pdf documents Thanks, Cheers Francisco Salas ----- Original Message ----- From: "Kris Geusebroek" <[email protected]> To: "Alexandre Dube" <[email protected]>; "fsalas" <[email protected]> Cc: <[email protected]> Sent: Wednesday, September 02, 2009 3:34 PM Subject: RE: [OpenLayers-Users] How Print openlayer Maps into pdf documents Hi, If you are using geoserver you can create a wms request with format application/pdf et volia! Cheers Kris -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Alexandre Dube Sent: Wednesday, September 02, 2009 5:29 PM To: fsalas Cc: [email protected] Subject: Re: [OpenLayers-Users] How Print openlayer Maps into pdf documents Hi, Did you read http://trac.openlayers.org/wiki/Printing ? About eh ezpdf class extension, are you talking about this : http://www.ros.co.nz/pdf/ ? If so, that's the lib I used with phpMapScript to accomplish some printing, but it supports WMS only and I use Ext to make my form. So take this example as a proof of concept only. See at : http://dev4.mapgears.com/wmsprint/ MapFish has a much more better printing tool and it supports Vector features printing. Best of luck, Alexandre fsalas wrote: > Hi all, > > I'm trying to print the current image maps into pdf documents > using the *EZPDF Class Extension,* but don´t work. > > some body know how i cant implement this. > > Thanks , > > salas > > ___________________________________ > Dirección de Comunicaciones > Grupo Empresarial GEOCUBA > Este mensaje esta libre de virus. > Revisado por Kaspersky Antivirus > ---------------------------------------------------------------------- > Definition count: 2365875 Definition date: 8/11/2009 SecurityPlus > version: 3.0.5 > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > -- Alexandre Dubé Mapgears www.mapgears.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users ___________________________________ Dirección de Comunicaciones Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Definition count: 2492726 Definition date: 9/3/2009 SecurityPlus version: 3.0.5 _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users ___________________________________ Dirección de Comunicaciones Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Definition count: 2492726 Definition date: 9/3/2009 SecurityPlus version: 3.0.5 _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
