<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 style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>I have a Map file with and Outputformat = PDF defined:</DIV>
<DIV>&nbsp;</DIV> OUTPUTFORMAT<BR>&nbsp; NAME pdf<BR>&nbsp; MIMETYPE "application/x-pdf"<BR>&nbsp; IMAGEMODE RGBA<BR>&nbsp; DRIVER pdf<BR>&nbsp; EXTENSION "pdf"<BR>&nbsp; FORMATOPTION "TRANSPARENT=ON"<BR>&nbsp; TRANSPARENT ON<BR>&nbsp; #FORMATOPTION "OUTPUT_TYPE=RASTER" ##not mandatory<BR>&nbsp;END
<DIV>&nbsp;</DIV>
<DIV>I call the map by sending a URL from OpenLayers:</DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="http://10.65.192.1/cgi-bin/mapserv.exe?map=/ms4w/apps/service/gsstmpdf.map&amp;mode=map&amp;layers=nz50ktm+main_gates&amp;MINX=1471766&amp;MINY=5119253&amp;MAXX=1475952&amp;MAXY=5123406&amp;mapsize=1200+1200&amp;map.outputformat=pdf">http://10.65.192.1/cgi-bin/mapserv.exe?map=/ms4w/apps/service/gsstmpdf.map&amp;mode=map&amp;layers=nz50ktm+main_gates&amp;MINX=1471766&amp;MINY=5119253&amp;MAXX=1475952&amp;MAXY=5123406&amp;mapsize=1200+1200&amp;map.outputformat=pdf</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>Just wondering how I can get the Browser to automatically open the returned PDF in a new window, as the file returned from Mapserver is called mapserv.exe?</DIV>
<DIV>&nbsp;</DIV>
<DIV>At the moment I have to download it to disk, then change its name to a PDF extension, then open it with Adobe Acrobat Reader.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Many thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert</DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;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>