<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Hi All,</SPAN><SPAN 
style="FONT-FAMILY: 'Arial Unicode MS'"><?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Id like to like the 
list know that I have pieced together a 'widget' for chameleon that allows one 
to print a map directly to a PDF template. </SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">The 'widget' employs 
functions from the phppdflib library to create the PDF map. I chose to use 
phppdflib instead of the standard pdflib because phppdflib is free and has 
the ability to import pdf's (i.e. the template), you must pay for this 
functionality in pdflib. One simply inserts their map template and plays 
with map element placement properties in order to use it.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">I hesitate to call this 
bit of code a widget as I don't think it meets all of the requirements that the 
name implies. In order to use it there are a few conditions that must be met in 
one's Mapserver app and one's code. However, I've found it to work great within 
our application.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">I would very much like 
other's to try it, use it if suitable, give me some feedback and 
ideally improve on it. There is much room for improvement.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">If anyone is interested 
they can send mail to me at <A 
href="mailto:jsears@nrcan.gc.ca">jsears(at)nrcan.gc.ca</A> (please put 
pdfMap in the subject heading) and Ill send a copy of the 'widget'. 
</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Regards,</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Jeremy</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt">  <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">phppdflib can be found 
: <A 
href="http://www.potentialtech.com/ppl.php">http://www.potentialtech.com/ppl.php</A></SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0pt"> <o:p></o:p></P>
<P style="MARGIN-LEFT: 72pt"><SPAN style="FONT-SIZE: 10pt"><FONT 
face="Arial Unicode MS"> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0pt"> <o:p></o:p></P></BODY></HTML>