[Mapserver-users] Pdf output shows junk on the browser?
Mahalakshmi Narayanan
mhln25 at yahoo.com
Mon Jun 14 21:53:48 PDT 2004
Thanks for the reply..
However, my problem is still unresolved..
The junk starts with ...
------------------
%PDF-1.3 %äãÏÒ 5 0 obj <> stream x3T0BC 650PHÎå2 èB(
ß)ËH!¤Ë5 ´!pendstream endobj 6 0 obj 40 endobj 7 0
obj <>] /Length 8 0 R >> stream
ÿØÿàJFIFÿþ;CREATOR: gd-jpeg v1.0 (using IJG JPEG
v62), quality = 95
ÿÛC
ÿÛC
ÿÀô"ÿÄ
ÿĵ}!1AQa"q2¡#B±ÁRÑð$3br
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ
ÿĵw!1AQaq"2B¡±Á #3RðbrÑ
$4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
¢
-------------
I visited all sites suggested by Emil Zegers, but not
still solved..
I have windows xp with acrobat reader 6 installed. My
ie settings seem to be ok 'cos I am able to open other
pdf documents.. I don't know how to save as pdf
document using map file itself (from command prompt)
then try to open it.. is it possible to do that?
Thanks again..
With kind regards,
Mahalakshmi Narayanan
--- Antti.Roppola at brs.gov.au wrote:
> 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
>
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
More information about the MapServer-users
mailing list