<html w="urn:schemas-microsoft-com:office:word" v="urn:schemas-microsoft-com:vml" st1="urn:schemas-microsoft-com:office:smarttags" xmlns="#DEFAULT" o="urn:schemas-microsoft-com:office:office" ns0="http://schemas.microsoft.com/office/2004/12/omml">
<head>
<style type="text/css">
<!--
body { margin-bottom: 1px; margin-left: 4px; font-variant: normal; line-height: normal; margin-top: 4px; margin-right: 4px }
span.emailstyle19 { color: navy; font-family: Arial }
li.msonormal { font-size: 12.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Times New Roman; margin-right: 0in; margin-top: 0in }
span.emailstyle18 { color: #1F497D; font-family: Calibri }
span.emailstyle17 { color: black; font-family: Arial }
a:visited { text-decoration: underline; color: purple }
p { margin-bottom: 0; margin-top: 0 }
span.msohyperlink { text-decoration: underline; color: blue }
span.msohyperlinkfollowed { text-decoration: underline; color: purple }
a:link { text-decoration: underline; color: blue }
p.msonormal { font-size: 12.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Times New Roman; margin-right: 0in; margin-top: 0in }
div.msonormal { font-size: 12.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Times New Roman; margin-right: 0in; margin-top: 0in }
-->
</style>
</head>
<body lang="EN-US" vlink="purple" link="blue">
<p style="margin-bottom: 0; margin-top: 0">
<font size="3" face="Comic Sans MS">did a negative number have any effect?</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font size="3" face="Comic Sans MS">bobb</font> </p>
<br> <br>
<p style="margin-bottom: 0; margin-top: 0">
<br>
<br>
>>> "Sean Ziniker" <Sean.Ziniker@co.jefferson.or.us> wrote:<br> </p>
<div style="background-color: #f3f3f3; border-left: solid 1px #050505; padding-left: 7px; margin-bottom: 0; margin-left: 15px; margin-right: 0; margin-top: 0">
<div class="section1">
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
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="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
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="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<text x=".47" y=".29" size="12" content="%title%"/><o p="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<text1 x="0" y=".29" size="10" content="%subtitle%"/><o p="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<text x="9.8" y="7.08" size="8" content="%date%"/><o p="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
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="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
Thanks for your help Len.<o p="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
 <o p="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; color: navy; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<div>
<p style="margin-bottom: 0; margin-top: 0" class="msonormal">
<st1 st="on" personname="#DEFAULT" w="#DEFAULT">
</p>
<div style="font-size: 13.5pt; color: #004080; font-family: Script MT Bold">
<p style="margin-bottom: 0; margin-top: 0">
Sean Ziniker </p>
</div>
<p style="margin-bottom: 0; margin-top: 0">
</st1>
<br>
</p>
<div style="font-size: 10.0pt; color: #004080">
<p style="margin-bottom: 0; margin-top: 0">
GIS Analyst<br><st1 st="on" place="#DEFAULT" w="#DEFAULT"><st1 city="#DEFAULT" st="on" w="#DEFAULT">Jefferson County</st1>, <st1 st="on" state="#DEFAULT" w="#DEFAULT">Oregon</st1></st1><br>66 S.E. "D" Street, Suite B<br><st1 st="on" place="#DEFAULT" w="#DEFAULT"><st1 city="#DEFAULT" st="on" w="#DEFAULT">Madras</st1>, <st1 st="on" state="#DEFAULT" w="#DEFAULT">OR</st1><st1 st="on" postalcode="#DEFAULT" w="#DEFAULT">97741</st1></st1><br>541.325.5083 Office<br>541.325.5089 Fax </p>
</div>
<div style="font-size: 13.5pt; color: #004080; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
</o>
</p>
</div>
</div>
<div>
<div style="text-align: center" class="msonormal" align="center">
<div style="font-size: 12.0pt">
<p style="margin-bottom: 0; margin-top: 0">
<hr tabindex="-1" width="100%" align="center" size="2">
</p>
</div>
</div>
<br>
<div style="font-weight: bold; font-size: 10.0pt; font-family: Tahoma">
<p style="margin-bottom: 0; margin-top: 0">
From: </p>
</div>
<div style="font-size: 10.0pt; font-family: Tahoma">
<p style="margin-bottom: 0; margin-top: 0">
Len Kne [mailto:lkne@houstoneng.com]<br> </p>
<div style="font-weight: bold">
<p style="margin-bottom: 0; margin-top: 0">
Sent: </p>
</div>
<p style="margin-bottom: 0; margin-top: 0">
Friday, October 22, 2010 1:32 PM<br> </p>
<div style="font-weight: bold">
<p style="margin-bottom: 0; margin-top: 0">
To: </p>
</div>
<p style="margin-bottom: 0; margin-top: 0">
<st1 st="on" personname="#DEFAULT" w="#DEFAULT">
Sean Ziniker</st1>; geomoose-users@lists.sourceforge.net<br> </p>
<div style="font-weight: bold">
<p style="margin-bottom: 0; margin-top: 0">
Subject: </p>
</div>
<p style="margin-bottom: 0; margin-top: 0">
RE: Print Templates </p>
</div>
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
</o>
</p>
</div>
<br>
<div style="font-size: 12.0pt">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 11.0pt; color: #1F497D; font-family: Calibri">
<p style="margin-bottom: 0; margin-top: 0">
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="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 11.0pt; color: #1F497D; font-family: Calibri">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 11.0pt; color: #1F497D; font-family: Calibri">
<p style="margin-bottom: 0; margin-top: 0">
Len<o p="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 11.0pt; color: #1F497D; font-family: Calibri">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<div>
<div style="padding-left: 0in; border: none; padding-top: 3.0pt; border-top: solid #B5C4DF 1.0pt; padding-right: 0in; padding-bottom: 0in">
<br>
<div style="font-weight: bold; font-size: 10.0pt; font-family: Tahoma">
<p style="margin-bottom: 0; margin-top: 0">
From: </p>
</div>
<div style="font-size: 10.0pt; font-family: Tahoma">
<p style="margin-bottom: 0; margin-top: 0">
<st1 st="on" personname="#DEFAULT" w="#DEFAULT">
Sean Ziniker</st1> [mailto:Sean.Ziniker@co.jefferson.or.us]<br> </p>
<div style="font-weight: bold">
<p style="margin-bottom: 0; margin-top: 0">
Sent: </p>
</div>
<p style="margin-bottom: 0; margin-top: 0">
Friday, October 22, 2010 3:12 PM<br> </p>
<div style="font-weight: bold">
<p style="margin-bottom: 0; margin-top: 0">
To: </p>
</div>
<p style="margin-bottom: 0; margin-top: 0">
geomoose-users@lists.sourceforge.net<br> </p>
<div style="font-weight: bold">
<p style="margin-bottom: 0; margin-top: 0">
Subject: </p>
</div>
<p style="margin-bottom: 0; margin-top: 0">
[Geomoose-users] Print Templates<o p="#DEFAULT"></o> </p>
</div>
</div>
</div>
<br>
<div style="font-size: 12.0pt">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 10.0pt; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
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="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 10.0pt; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<text x="-.47" y=".29" size="14" content="%subtitle%"/><o p="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 10.0pt; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
Is there a way to put a right align within the text tag so longer subtitles will not run off the page.<o p="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<br>
<div style="font-size: 10.0pt; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
Thanks,<o p="#DEFAULT"></o> </p>
</div>
<br>
<div style="font-size: 10.0pt; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o> </p>
</div>
<p style="margin-bottom: 0; margin-top: 0" class="msonormal">
<st1 st="on" personname="#DEFAULT" w="#DEFAULT">
</p>
<div style="font-size: 13.5pt; color: #004080; font-family: Script MT Bold">
<p style="margin-bottom: 0; margin-top: 0">
Sean Ziniker </p>
</div>
<p style="margin-bottom: 0; margin-top: 0">
</st1>
<br>
</p>
<div style="font-size: 10.0pt; color: #004080">
<p style="margin-bottom: 0; margin-top: 0">
GIS Analyst<br><st1 st="on" place="#DEFAULT" w="#DEFAULT"><st1 city="#DEFAULT" st="on" w="#DEFAULT">Jefferson County</st1>, <st1 st="on" state="#DEFAULT" w="#DEFAULT">Oregon</st1></st1><br>66 S.E. "D" Street, Suite B<br><st1 st="on" place="#DEFAULT" w="#DEFAULT"><st1 city="#DEFAULT" st="on" w="#DEFAULT">Madras</st1>, <st1 st="on" state="#DEFAULT" w="#DEFAULT">OR</st1><st1 st="on" postalcode="#DEFAULT" w="#DEFAULT">97741</st1></st1><br>541.325.5083 Office<br>541.325.5089 Fax </p>
</div>
<div style="font-size: 13.5pt; color: #004080; font-family: Arial">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
</o>
</p>
</div>
<br>
<div style="font-size: 12.0pt">
<p style="margin-bottom: 0; margin-top: 0">
<o p="#DEFAULT">
 </o>
</p>
</div>
</div>
</div>
</body>
</html>