R: [Mapserver-users] PDF output

Marco Sbrana sbrana at casaccia.enea.it
Tue Oct 14 23:53:44 PDT 2003


I try with two scenery:

1)	I just use:
<A
href="/scripts/mapserv.exe?map=d:\serverweb\tutorial35\s1\s1ex2.map&mode=map
">
file pdf</A>  to call a map file.

Web server ask me to download the file and the answer is:

%PDF-1.3 %äãÏÒ 5 0 obj........................

a classic MIMETYPE problem, I think.

2) I try using a map file that uses a template, Mapserver answer with: “CGI
Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:” but in TMP directory I find
the pdf file created correctly



-----Messaggio originale-----
Da: Stephen Clark [mailto:stephen.clark at focus.ca]
Inviato: martedì 14 ottobre 2003 18.57
A: Marco Sbrana; mapserver-users at lists.gis.umn.edu
Oggetto: Re: [Mapserver-users] PDF output


Marco,

I am working on PDF output using a similar system .  MS 4.00 on Win2k using
Apache 2.0.47.

Post your template file. That may be helpful in finding the problem

Stephen


----- Original Message -----
From: "Marco Sbrana" <sbrana at casaccia.enea.it>
To: <mapserver-users at lists.gis.umn.edu>
Sent: Monday, October 13, 2003 12:52 AM
Subject: [Mapserver-users] PDF output


> I'm working with Mapserver ver.4.00 on a NT4 sp6 server.
> I have a problem with PDF format: when i call my map file i have back a
file
> in text format.
> I think that is a problem with MIMETYPE setting, i verify on the webserver
> and all is OK (i can read fine other pdf format files).
> When i use a template file i find the pdf file in tmp directory and i can
> see it correctly.
> Where is the problem? Anybody can help me
>
> My map file:
>
> NAME S1EX2
> EXTENT -97.238976 41.619778 -82.122902 49.38562
> SIZE 400 300
> SHAPEPATH "d:\serverweb\tutorial35\data"
>
> IMAGETYPE pdf
>
> OUTPUTFORMAT
>  NAME pdf
>  MIMETYPE "application/x-pdf"
>  DRIVER pdf
>  EXTENSION "pdf"
> END
>
> LAYER # States
>   NAME "states"
>   DATA states_ugl
>   STATUS DEFAULT
>   TYPE POLYGON
>   CLASSITEM "STATE"
>   CLASS # Michigan class
>     NAME "Michigan"
>     EXPRESSION "Michigan"
>     COLOR 0 0 128
>     OUTLINECOLOR 0 0 0
>   END # end of Michigan class object
>   CLASS # Minnesota class
>     NAME "Minnesota"
>     EXPRESSION "Minnesota"
>     COLOR 255 255 0
>     OUTLINECOLOR 0 0 0
>   END # end of Minnesota class object
>   CLASS # Wisconsin class
>     NAME "Wisconsin"
>     EXPRESSION "Wisconsin"
>     COLOR 255 0 0
>     OUTLINECOLOR 0 0 0
>   END # end of Wisconsin class object
> END # end of layer object
> END # end of map file
>
> _______________________________________________
> 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