<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-&gt;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>&nbsp;</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.&nbsp; Looks like if there is no width defined, the cell goes all the way to the right margin.&nbsp; If that doesn&#8217;t work, you could try setting the margins $pdf-&gt;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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.&nbsp; There is still one issue I am having but overall it works well.&nbsp; I wanted a title and subtitle for user inputs.&nbsp; The title needed to be on the left side of the template and the Subtitle on the right.&nbsp; The default is left justified so I needed to right justify the subtitle.&nbsp; 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 &#8220;# Render the text fields&#8221;. &nbsp;The code between #SZ Start and #SZ End is the code I added. &nbsp;I basically had to add another &#8220;getElementsByTagName&#8221; and call it text1.&nbsp; So anywhere within that chunk of code that referred to &#8220;text&#8221; I changed it to &#8220;text1&#8221;.&nbsp; Then at the end of the code I added there is a line that says &#8220;$pdf-&gt;Cell(0,.25,$printString,0,0,'R');&#8221;, this is where I defined the justification.&nbsp; If you look at the original code it does not have the &#8220;,0,0,&#8217;R&#8217;&#8221; after &#8220;$printString&#8221;.&nbsp; The R means right, C would be for center if you wanted the text centered and L for left.&nbsp; <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p>&nbsp;</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.&nbsp; 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>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>&lt;text x=&quot;.47&quot; y=&quot;.29&quot; size=&quot;12&quot; content=&quot;%title%&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>&lt;text1 x=&quot;0&quot; y=&quot;.29&quot; size=&quot;10&quot; content=&quot;%subtitle%&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>&lt;text x=&quot;9.8&quot; y=&quot;7.08&quot; size=&quot;8&quot; content=&quot;%date%&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p>&nbsp;</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.&nbsp; So above where it says &lt;text1 x=&quot;0&quot;, I could have a 0 or 100 in the x= and it wont change the position.&nbsp; The reason I would like to is that when I right justify my text1 it sits just a little bit outside my border.&nbsp; 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>&nbsp;</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>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>&nbsp;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p>&nbsp;</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. &quot;D&quot; 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>&nbsp;</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.&nbsp; The library GeoMOOSE uses for printing PDFs is at, <a href="http://www.fpdf.org/">http://www.fpdf.org/</a>.&nbsp; Look for &#8220;cell&#8221; in the documentation and print.php &#8211; 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>&nbsp;</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>&nbsp;</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>&nbsp;</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.&nbsp; 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>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&lt;text x=&quot;-.47&quot; y=&quot;.29&quot; size=&quot;14&quot; content=&quot;%subtitle%&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</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>&nbsp;</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>&nbsp;</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. &quot;D&quot; 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>&nbsp;</o:p></p></div></body></html>