[mapserver-users] how to get pdf from mapserver

Robert Sanson SansonR at asurequality.com
Sun Sep 20 13:45:04 PDT 2009


Hi Harpal
 
Here is an example from my internal server that works for me:
 
http://10.65.192.1/cgi-bin/mapserv.exe?map=/ms4w/apps/service/gsstmpdf.map&farmid=AS00001&mode=map&layers=nz50ktm+linz_orthos+farm+crs_parcels+crs_road+main_gates+copyright+fid&MINX=1471766&MINY=5119253&MAXX=1475952&MAXY=5123406&mapsize=1200+1200&map.layer[fid]=FEATURE+POINTS+600+20+END+TEXT+AS00001+END 
 
In my mapfile I have the following sections: 
 
# default output image dimensions
 SIZE 1200 1200
 RESOLUTION 150
 MAXSIZE 4096
 
 OUTPUTFORMAT
  NAME pdf
  MIMETYPE "application/x-pdf"
  DRIVER pdf
  EXTENSION "pdf"
  IMAGEMODE RGB
  FORMATOPTION "OUTPUT_TYPE=RASTER"
  TRANSPARENT FALSE
 END #outputformat
regards,
 
Robert
>>> harpal singh <harpalhira at gmail.com> 19/09/2009 10:29 p.m. >>>
I AM TRYING TO GET A PDF BACK FROM MAP SERVER ...IT IS NOT GIVING ANY ERROR BUT THE IMAGE ALSO IS NOT DISPLAYING ..........
GETTING A BROKEN IMAGE ICON ...ON VIEWING IT GIVES BACK A BLANK PDF FILE ........CAN ANYBODY BE ABLE TO SORT MY PROBLEM...
THANX IN ADVANCE 
REGARDS HARPAL SINGH




Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam.
------------------------------------------------------------------
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.
------------------------------------------------------------------


This message has been scanned for malware by SurfControl plc. www.surfcontrol.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090921/ac71af75/attachment.htm>


More information about the MapServer-users mailing list