<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:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="http://schemas.microsoft.com/office/2004/12/omml">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (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]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}
code
        {mso-style-priority:99;}
p.MSOACETATE
        {mso-style-priority:99;}
li.MSOACETATE
        {mso-style-priority:99;}
div.MSOACETATE
        {mso-style-priority:99;}
span.BALLOONTEXTCHAR
        {mso-style-priority:99;}

 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 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";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
code
        {font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:Tahoma;}
span.BalloonTextChar
        {font-family:Tahoma;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</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=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks Len. That did the trick.&nbsp; I
defined <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>$pdf-&gt;Cell(0,.25<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>&nbsp;</span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>to be</span></font><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>$pdf-&gt;Cell(1,.25 <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>and then set my x position within
letter_landscape.xml to x=&#8221;-.19&#8221;.&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I thought I had tired that but apparently
not!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Sean<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><st1:PersonName
w:st="on"><font size=4 color="#004080" face="Script MT Bold"><span
 style='font-size:13.5pt;font-family:"Script MT Bold";color:#004080'>Sean
 Ziniker</span></font></st1:PersonName><br>
<font size=2 color="#004080"><span style='font-size:10.0pt;color:#004080'>GIS
Analyst<br>
<st1:place w:st="on"><st1:City w:st="on">Jefferson County</st1:City>, <st1:State
 w:st="on">Oregon</st1:State></st1:place><br>
66 S.E. &quot;D&quot; Street, Suite B<br>
<st1:place w:st="on"><st1:City w:st="on">Madras</st1:City>, <st1:State w:st="on">OR</st1:State>
 <st1:PostalCode w:st="on">97741</st1:PostalCode></st1:place><br>
541.325.5083 Office<br>
541.325.5089 Fax</span></font><font size=4 color="#004080" face=Arial><span
style='font-size:13.5pt;font-family:Arial;color:#004080'><o:p></o:p></span></font></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Len Kne
[mailto:lkne@houstoneng.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, October 26, 2010
10:44 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Sean
 Ziniker</st1:PersonName>; geomoose-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: Print Templates</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Where you define the
cell:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;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></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;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></font><code><font
size=2 face="Courier New"><span style='font-size:10.0pt'>SetMargins(<b><span
style='font-weight:bold'>float</span></b> left, <b><span style='font-weight:
bold'>float</span></b> top [, <b><span style='font-weight:bold'>float</span></b>
right]).<o:p></o:p></span></font></code></p>

<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></code></p>

<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'>Len</span></font></code><font size=2 color="#1f497d"
face=Calibri><span style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">Sean Ziniker</st1:PersonName>
[mailto:Sean.Ziniker@co.jefferson.or.us] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, October 26, 2010
11:12 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
geomoose-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Geomoose-users] Print
Templates<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;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></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;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></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;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></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;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></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;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></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;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></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks for your help Len.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><st1:PersonName
w:st="on"><font size=4 color="#004080" face="Script MT Bold"><span
 style='font-size:13.5pt;font-family:"Script MT Bold";color:#004080'>Sean
 Ziniker</span></font></st1:PersonName><br>
<font size=2 color="#004080"><span style='font-size:10.0pt;color:#004080'>GIS
Analyst<br>
<st1:place w:st="on"><st1:City w:st="on">Jefferson County</st1:City>, <st1:State
 w:st="on">Oregon</st1:State></st1:place><br>
66 S.E. &quot;D&quot; Street, Suite B<br>
<st1:place w:st="on"><st1:City w:st="on">Madras</st1:City>, <st1:State w:st="on">OR</st1:State>
 <st1:PostalCode w:st="on">97741</st1:PostalCode></st1:place><br>
541.325.5083 Office<br>
541.325.5089 Fax</span></font><font size=4 color="#004080" face=Arial><span
style='font-size:13.5pt;font-family:Arial;color:#004080'><o:p></o:p></span></font></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Len Kne
[mailto:lkne@houstoneng.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, October 22, 2010
1:32 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Sean
 Ziniker</st1:PersonName>; geomoose-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: Print Templates</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;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></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Len<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">Sean Ziniker</st1:PersonName> [mailto:Sean.Ziniker@co.jefferson.or.us]
<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, October 22, 2010
3:12 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
geomoose-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Geomoose-users] Print
Templates<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&lt;text x=&quot;-.47&quot; y=&quot;.29&quot;
size=&quot;14&quot; content=&quot;%subtitle%&quot;/&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><st1:PersonName
w:st="on"><font size=4 color="#004080" face="Script MT Bold"><span
 style='font-size:13.5pt;font-family:"Script MT Bold";color:#004080'>Sean
 Ziniker</span></font></st1:PersonName><br>
<font size=2 color="#004080"><span style='font-size:10.0pt;color:#004080'>GIS
Analyst<br>
<st1:place w:st="on"><st1:City w:st="on">Jefferson County</st1:City>, <st1:State
 w:st="on">Oregon</st1:State></st1:place><br>
66 S.E. &quot;D&quot; Street, Suite B<br>
<st1:place w:st="on"><st1:City w:st="on">Madras</st1:City>, <st1:State w:st="on">OR</st1:State>
 <st1:PostalCode w:st="on">97741</st1:PostalCode></st1:place><br>
541.325.5083 Office<br>
541.325.5089 Fax</span></font><font size=4 color="#004080" face=Arial><span
style='font-size:13.5pt;font-family:Arial;color:#004080'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>