If you'd like a PHP approach to this problem you can check out the GeoMOOSE project, and our print.php script.
It uses GD and FPDF. ----- Original Message ---- > From: Rob McCulley <[EMAIL PROTECTED]> > To: mapserver-users@lists.osgeo.org > Sent: Tuesday, September 30, 2008 4:33:37 PM > Subject: RE: [mapserver-users] High resolution printing > > I'm working on the same thing right now. The first option is to > generate a high resolution raster image from mapserver and then user > reportlab to put that into a .pdf. The problem with this is the file > size of the resulting .pdf is large, and the vectors still don't look as > good as they could. > > What I've been working on now is using reportlab and svglib. I create a > high resolution .jpg of just the raster layers from mapserver, and then > I create an .svg file of the vector layers. I use svglib to convert the > .svg file into a reportlab graphics object, and draw that on top of the > raster into a .pdf document. The file size is still large, but the > vectors look much better. The problem I'm having now is that not all of > mapservers labeling options are available to svg output (namely, you > can't wrap labels). > > http://www.reportlab.org/ > http://pypi.python.org/pypi/svglib/0.6.0 > > > Rob McCulley > GIS Coordinator > County of Vermilion River > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Brent > Fraser > Sent: Tuesday, September 30, 2008 3:16 PM > To: Milo van der Linden > Cc: mapserver-users > Subject: Re: [mapserver-users] High resolution printing > > Milo, > > It will likely involve several changes to Mapserver's mappdf.c > (see > http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html) > . > > Brent Fraser > > Milo van der Linden wrote: > > Hello list! > > > > I have been searching the web for tips and tricks, but basically what > I > > need is a method or procedure or (commercial) tool that can enhance my > > > mapserver installation to enable high resolution printing. > > > > What I am looking for is the best practice to: > > > > - Add a button to our website > > - Let the button start a script or program that processes the active > > layers in the map view based upon the current extent > > - Generate a mixture of high-res images and optionally svg or alike > for > > linework > > - combine the works in a pdf > > - present the pdf for download to the user > > > > I would also like to know if there are any commercial, mapserver > based, > > solutions for this. I am also willing to hire an expert to achieve > this. > > > > Any ideas? > > > > Kind regards, > > > > Milo van der Linden > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users