<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Rano,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Perhaps there is a more efficient way to do this, but so far it's what I've been able to get working.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Example: I have a standard legend that I use for my city zoning map and users wanted a legend showing the zoning districts to appear on the PDF files. </DIV>
<DIV>Solution: I dug into the pdfprint2.php code and wrote specific lines of code with the&nbsp;fpdf (see <A href="http://www.fpdf.org/en/doc/index.php">http://www.fpdf.org/en/doc/index.php</A>)&nbsp;commands to insert colored rectangles, lines&nbsp;and labels to create a rudimentary legend at the bottom of the page (I had to shrink the map area slightly to fit the legend). If you have dug into this code to customize your PDF outputs you should&nbsp;have an idea of how it works. The PDF-creation portion of the PHP code is actually quite readable.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The downside of this solution, of course, is that the legend in the PHP code&nbsp;does not always represent the&nbsp;map&nbsp;layers selected by the user for display. It is&nbsp;a static legend. I ended up creating a menu of map shortcuts so the users can choose between standard maps: zoning, city property/parks, planning, etc. with the appropriate legends (each with a unique pdfprint2_xxx.php file and reference in the map's .xml file). My main map with ALL of the layers produces a PDF with no legend so users can be more creative.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Like I said, there is surely a better way to do this. Coming up with a means to choose allow the user to select which layers should appear in the PDF at the time of creation would be extremely helpful.&nbsp;However, I'm not much of a PHP coder, nor do I have the time to do it.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Brian Welch, GIS Technician</DIV>
<DIV>City of Northfield</DIV>
<DIV>Northfield, MN</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#808080>--------</FONT></DIV>
<DIV><FONT color=#808080>Brian Welch, GIS Technician</FONT></DIV>
<DIV><FONT color=#808080>City of Northfield</FONT></DIV>
<DIV><FONT color=#808080>Northfield, MN 55057</FONT></DIV>
<DIV><FONT color=#808080>507-645-3027</FONT></DIV></BODY></HTML>