parts:
version 0.1 (2006-09)
compiling mapserver version 4.8.4 with pdf output on debian sarge (the mapserver version 4.1.4 which comes which is part of sarge doesn't have pdf support compiled in)
steps:
./configure --with-ogr=/usr/bin/gdal-config
--with-gdal=/usr/bin/gdal-config
--with-httpd=/usr/sbin/apache2
--with-wms
--with-wfs
--with-wcs
--with-wfsclient
--with-wmsclient
--enable-debug
--with-curl-config=/usr/bin/curl-config
--with-proj
--with-tiff
--with-jpg
--with-png
--with-freetype=/usr/local
--with-threads
--with-postgis=/usr/bin/pg_config
--with-libiconv=/usr/local
--with-xml2-config=/usr/bin/xml2-config
--with-pdf= /usr/local/lib
--with-geos = /usr/bin/geos-config
MAP
...
STATUS ON
IMAGETYPE pdf
# define a font-list for the use of truetype fonts
FONTSET "/var/www/vhosts/maps.offene-kartierung.de/httpsdocs/fonts/font.set"
OUTPUTFORMAT
NAME pdf
MIMETYPE "application/x-pdf"
DRIVER pdf
END
...
# a title layer
LAYER
NAME "title"
STATUS DEFAULT
TRANSFORM FALSE
TYPE ANNOTATION
FEATURE
POINTS
40 120 #position, 40 from left, 120 from top
END
TEXT "title"
END
CLASS
LABEL
TYPE truetype
FONT "arial-bold" # name defined in fontset
SIZE 35 # in points (?)
ANGLE 2 # rotate type two degrees counterclockwise
POSITION CR
COLOR 0 0 0 # color black
END
END
END