[OpenLayers-Users] How Print openlayer Maps into pdf documents

fsalas fsalas at geocuba.cu
Tue Dec 1 09:30:21 EST 2009


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" <fsalas at geocuba.cu>
To: "Kris Geusebroek" <kgeusebroek at xebia.com>; <users at openlayers.org>
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" <kgeusebroek at xebia.com>
To: "Alexandre Dube" <adube at mapgears.com>; "fsalas" <fsalas at geocuba.cu>
Cc: <users at openlayers.org>
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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On
Behalf Of Alexandre Dube
Sent: Wednesday, September 02, 2009 5:29 PM
To: fsalas
Cc: users at openlayers.org
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
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
Users at openlayers.org
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
Users at openlayers.org
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







More information about the Users mailing list