<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Script MT Bold";
        panose-1:3 4 6 2 4 6 7 8 9 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Where you define the cell:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>$pdf->Cell(0,.25,$printString,0,0,'R');//R for right, L for left and C for center justification<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Try changing the width value (the first zero) to something. Looks like if there is no width defined, the cell goes all the way to the right margin. If that doesn’t work, you could try setting the margins $pdf-></span><code><span style='font-size:10.0pt'>SetMargins(<b>float</b> left, <b>float</b> top [, <b>float</b> right]).<o:p></o:p></span></code></p><p class=MsoNormal><code><span style='font-size:10.0pt'><o:p> </o:p></span></code></p><p class=MsoNormal><code><span style='font-size:10.0pt'>Len</span></code><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Sean Ziniker [mailto:Sean.Ziniker@co.jefferson.or.us] <br><b>Sent:</b> Tuesday, October 26, 2010 11:12 AM<br><b>To:</b> geomoose-users@lists.sourceforge.net<br><b>Subject:</b> [Geomoose-users] Print Templates<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Well I finally got the justification to work on my print template. There is still one issue I am having but overall it works well. I wanted a title and subtitle for user inputs. The title needed to be on the left side of the template and the Subtitle on the right. The default is left justified so I needed to right justify the subtitle. The only way I could get it to work is to split them up in the print.php file. I attached the code I worked with at around line 291 where it says “# Render the text fields”. The code between #SZ Start and #SZ End is the code I added. I basically had to add another “getElementsByTagName” and call it text1. So anywhere within that chunk of code that referred to “text” I changed it to “text1”. Then at the end of the code I added there is a line that says “$pdf->Cell(0,.25,$printString,0,0,'R');”, this is where I defined the justification. If you look at the original code it does not have the “,0,0,’R’” after “$printString”. The R means right, C would be for center if you wanted the text centered and L for left. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Now all I had to do is go into your letter_landscape.xml template and change text to text1. Below is what mine looks like:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><text x=".47" y=".29" size="12" content="%title%"/><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><text1 x="0" y=".29" size="10" content="%subtitle%"/><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><text x="9.8" y="7.08" size="8" content="%date%"/><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>The one issue I am having though is once I have right justified text1 I cannot move the x position. So above where it says <text1 x="0", I could have a 0 or 100 in the x= and it wont change the position. The reason I would like to is that when I right justify my text1 it sits just a little bit outside my border. I have also added a pdf of my print.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Thanks for your help Len.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:13.5pt;font-family:"Script MT Bold";color:#004080'>Sean Ziniker</span><br><span style='font-size:10.0pt;color:#004080'>GIS Analyst<br>Jefferson County, Oregon<br>66 S.E. "D" Street, Suite B<br>Madras, OR 97741<br>541.325.5083 Office<br>541.325.5089 Fax</span><span style='font-size:13.5pt;font-family:"Arial","sans-serif";color:#004080'><o:p></o:p></span></p></div><div><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="100%" align=center></div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Len Kne [mailto:lkne@houstoneng.com] <br><b>Sent:</b> Friday, October 22, 2010 1:32 PM<br><b>To:</b> Sean Ziniker; geomoose-users@lists.sourceforge.net<br><b>Subject:</b> RE: Print Templates</span><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This is possible, but you are going to have to edit print.php. The library GeoMOOSE uses for printing PDFs is at, <a href="http://www.fpdf.org/">http://www.fpdf.org/</a>. Look for “cell” in the documentation and print.php – you should be able to set the justification.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Len<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Sean Ziniker [mailto:Sean.Ziniker@co.jefferson.or.us] <br><b>Sent:</b> Friday, October 22, 2010 3:12 PM<br><b>To:</b> geomoose-users@lists.sourceforge.net<br><b>Subject:</b> [Geomoose-users] Print Templates<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I was just wondering if there is a way to align a subtitle on the right side on my custom print template. I am using something that looks like this in my .xml:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><text x="-.47" y=".29" size="14" content="%subtitle%"/><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Is there a way to put a right align within the text tag so longer subtitles will not run off the page.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:13.5pt;font-family:"Script MT Bold";color:#004080'>Sean Ziniker</span><br><span style='font-size:10.0pt;color:#004080'>GIS Analyst<br>Jefferson County, Oregon<br>66 S.E. "D" Street, Suite B<br>Madras, OR 97741<br>541.325.5083 Office<br>541.325.5089 Fax</span><span style='font-size:13.5pt;font-family:"Arial","sans-serif";color:#004080'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>