<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV>Hi Harpal</DIV>
<DIV> </DIV>
<DIV>Here is an example from my internal server that works for me:</DIV>
<DIV> </DIV>
<DIV><A href="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">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</A></DIV>
<DIV> </DIV>
<DIV>In my mapfile I have the following sections: </DIV>
<DIV> </DIV>
<DIV># default output image dimensions<BR> SIZE 1200 1200<BR> RESOLUTION 150<BR> MAXSIZE 4096</DIV>
<DIV> <BR> OUTPUTFORMAT<BR> NAME pdf<BR> MIMETYPE "application/x-pdf"<BR> DRIVER pdf<BR> EXTENSION "pdf"<BR> IMAGEMODE RGB<BR> FORMATOPTION "OUTPUT_TYPE=RASTER"<BR> TRANSPARENT FALSE<BR> END #outputformat<BR></DIV>
<DIV>regards,</DIV>
<DIV> </DIV>
<DIV>Robert<BR>>>> harpal singh <harpalhira@gmail.com> 19/09/2009 10:29 p.m. >>><BR>I AM TRYING TO GET A PDF BACK FROM MAP SERVER ...IT IS NOT GIVING ANY ERROR BUT THE IMAGE ALSO IS NOT DISPLAYING ..........<BR>GETTING A BROKEN IMAGE ICON ...ON VIEWING IT GIVES BACK A BLANK PDF FILE ........CAN ANYBODY BE ABLE TO SORT MY PROBLEM...<BR>THANX IN ADVANCE <BR>REGARDS HARPAL SINGH<BR><BR><BR><BR></DIV><FONT style="BACKGROUND-COLOR: #ffffff">
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">Click <A href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==">here</A> to report this email as spam.</FONT></P></FONT><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
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.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc. </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>