[Mapserver-users] Pdf output shows junk on the browser?

Antti.Roppola at brs.gov.au Antti.Roppola at brs.gov.au
Mon Jun 14 16:53:37 PDT 2004


What sort of junk?

If it looks like this, you are getting a PDF file, but it is not
being recognised by the end-user as one:

   %PDF-1.3
   %äãÏÒ
   5 0 obj
   <</Length 6 0 R
   /Filter/FlateDecode
   >>
   stream
   x~\~D½I²$I®$¸~OS¼^K´~SÌö~Iê^Fu^BëEmÂ6ÿþ~K^F3CÌó©À²èS~÷~@«ªÉ~H~Q^Aä~_


I have noticed that the PDF output file includes a MIME header
in the first couple of lines. Depending on how you are generating
and sending the file, this might be a problem. If so, try open the
PDF file and delete everything before "%PDF-" before sending it to
the browser. Also try opening the file from your PDF reader. Aka,
the first thing to do is confirm that a valid PDF file is being created.

Cheers,

Antti

-----Original Message-----
From: Emil Zegers [mailto:EZS at DeStraat.NL]
Sent: Friday, 11 June 2004 5:38 PM
To: mapserver-users at lists.gis.umn.edu; mhln25 at yahoo.com
Subject: Re: [Mapserver-users] Pdf output shows junk on the browser?


Hello 

If your PDF configuration in the map file is correct and you do have installed Adobe Acrobat and/or Reader, the problem might be caused by some browser related issues.

Especially recent IE versions have trouble displaying server side (created) PDF's properly.

Take a look at the following links for more info:

http://www.adobe.com/support/techdocs/29776.htm

http://forum.planetpdf.com/wb/default.asp?action=9&fid=6&read=41191

http://www.bnl.gov/itd/webapps/pdf_help.asp


Groeten,

Emil Zegers

De Straat Milieu-adviseurs
Divisie Informatisering
026 7513902
06 22965585
http://www.destraat.nl

>>> Mahalakshmi Narayanan <mhln25 at yahoo.com> 06/11/04 08:09 AM >>>
Hi!

I tried to output my map as a pdf but I get junk
thrown to me when I include the following outputformat
tag..
-------------------
OUTPUTFORMAT
  NAME pdf
  MIMETYPE "application/x-pdf"
  DRIVER pdf
 # FORMATOPTION "OUTPUT_TYPE=RASTER"
  EXTENSION "pdf" 
END
-------------------
I am running windows xp with 
--------------
MapServer version 4.0.2 OUTPUT=GIF OUTPUT=PNG
OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
 OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI
ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE
------------------

do i need anything else to be installed on my box to
get pdf output?

can somebody help me, pls.

With regards,
Mahalakshmi Narayanan



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

__________
VChecked


______________________________________________________

 This message has been checked for all known viruses
______________________________________________________

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list