[Mapserver-users] PDF output

Stephen Clark stephen.clark at focus.ca
Tue Oct 14 12:56:36 EDT 2003


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