<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Intelligent Mail barcode &#8211; iText and barcode4j</title>
	<atom:link href="http://geekin.wordpress.com/2009/01/06/intelligent-mail-barcode-itext-and-barcode4j/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekin.wordpress.com/2009/01/06/intelligent-mail-barcode-itext-and-barcode4j/</link>
	<description>mostly software, with a little random mixed in.</description>
	<lastBuildDate>Tue, 15 Sep 2009 20:41:41 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mpickell</title>
		<link>http://geekin.wordpress.com/2009/01/06/intelligent-mail-barcode-itext-and-barcode4j/#comment-6</link>
		<dc:creator>mpickell</dc:creator>
		<pubDate>Tue, 15 Sep 2009 20:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://geekin.wordpress.com/?p=24#comment-6</guid>
		<description>Do you have the iText manual?  That is good reference for it.  I have had trouble with the coordinates used in the library also.  

One key thing to remember is that the 0,0 coordinate is the bottom left corner of the page, not the upper left.  So increasing the Y value is taking you from the bottom of the page to the top.


Another trick that i have used a lot is to create a template using either Adobe Acrobat, or CutePdf Writer.  Put a text field on the template where you want the address/barcode to be.  You can then use something like this code:

&lt;code&gt;PdfStamper stamper = new PdfStamper( /* ...whatever... */);
AcroFields form = stamper.getAcroFields();
float [] fieldPositionsUsps = form.getFieldPositions(&quot;dpbcBarcode&quot;);&lt;/code&gt;

to actual pull the position of the text field off of the template and use those coordinates (&lt;code&gt;fieldPositionsUsps&lt;/code&gt; above) in the &lt;code&gt;createUspsIntelligentBarcode&lt;/code&gt; method in this post.  You never need to actually use the text field for anything other than its coordinates.  I&#039;m using this exact method in many places currently.  It is just easier than trying to figure out the coordinates yourself.</description>
		<content:encoded><![CDATA[<p>Do you have the iText manual?  That is good reference for it.  I have had trouble with the coordinates used in the library also.  </p>
<p>One key thing to remember is that the 0,0 coordinate is the bottom left corner of the page, not the upper left.  So increasing the Y value is taking you from the bottom of the page to the top.</p>
<p>Another trick that i have used a lot is to create a template using either Adobe Acrobat, or CutePdf Writer.  Put a text field on the template where you want the address/barcode to be.  You can then use something like this code:</p>
<p><code>PdfStamper stamper = new PdfStamper( /* ...whatever... */);<br />
AcroFields form = stamper.getAcroFields();<br />
float [] fieldPositionsUsps = form.getFieldPositions("dpbcBarcode");</code></p>
<p>to actual pull the position of the text field off of the template and use those coordinates (<code>fieldPositionsUsps</code> above) in the <code>createUspsIntelligentBarcode</code> method in this post.  You never need to actually use the text field for anything other than its coordinates.  I&#8217;m using this exact method in many places currently.  It is just easier than trying to figure out the coordinates yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: j.f. zarama</title>
		<link>http://geekin.wordpress.com/2009/01/06/intelligent-mail-barcode-itext-and-barcode4j/#comment-5</link>
		<dc:creator>j.f. zarama</dc:creator>
		<pubDate>Sun, 13 Sep 2009 05:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://geekin.wordpress.com/?p=24#comment-5</guid>
		<description>very informative and helped me for work on a related project;

should you have additional information and/or reference please forward or post since I&#039;m having difficulty properly placing an address-lines and barcode on an 8 1/2 x 11 page for insertion on a No. 10 windowed envelope; thanks;</description>
		<content:encoded><![CDATA[<p>very informative and helped me for work on a related project;</p>
<p>should you have additional information and/or reference please forward or post since I&#8217;m having difficulty properly placing an address-lines and barcode on an 8 1/2 x 11 page for insertion on a No. 10 windowed envelope; thanks;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
