Seam PDF barcode nested in table
jeanchastain.wjchastain.gmail.com Sep 16, 2009 1:55 AMWhat can I do to keep my barcodes from expanding to the width of the p:cell they're in? I'm using a p:table to divide fields into areas on the page, but no combination of tag attributes on p:table or p:cell or p:barcode seems to keep the barcodes 22.5 points high and however wide they need to be to encode the data. Here is an example. Look at the PDF generated and then strip out the table to see what the barcodes are supposed to look like.
<p:document xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://jboss.com/products/seam/pdf" xmlns:s="http://jboss.com/products/seam/taglib" pagesize="LETTER"> <p:table columns="1" widthPercentage="100"> <p:cell borderWidth="0"> <p:font name="helvetica" style="bold" size="10">Order</p:font> </p:cell> <p:cell borderWidthBottom="1" borderWidthTop="1" borderWidthLeft="1" borderWidthRight="1"> <p:table columns="2" widthPercentage="100"> <p:cell borderWidth="0"> <p:font name="helvetica" style="bold" size="9">Order/Line: WPF0008153:001</p:font> </p:cell> <p:cell borderWidth="0"> <p:font name="courier" size="8"> <p:barCode code="WPF0008153:001" type="CODE128" barHeight="22.5" textSize="0" altText=""/> </p:font> </p:cell> <p:cell borderWidth="0"> <p:font name="helvetica" style="bold" size="9">Item#: LC924</p:font> </p:cell> <p:cell borderWidth="0"> <p:font name="courier" size="8"> <p:barCode code="LC924" type="CODE128" barHeight="22.5" textSize="0" altText=""/> </p:font> </p:cell> <p:cell borderWidth="0"> <p:font name="helvetica" style="bold" size="9">Quantity: 2461</p:font> </p:cell> <p:cell borderWidth="0"> <p:font name="courier" size="8"> <p:barCode code="2461" type="CODE128" barHeight="22.5" textSize="0" altText=""/> </p:font> </p:cell> </p:table> </p:cell> <p:cell borderWidth="0"> <p:font name="helvetica" style="bold" size="10">Finishing</p:font> </p:cell> <p:cell borderWidthBottom="1" borderWidthTop="1" borderWidthLeft="1" borderWidthRight="1"> <p:table columns="2" widthPercentage="100"> <p:cell borderWidth="0"> <p:font name="helvetica" style="bold" size="9">Step: </p:font> </p:cell> <p:cell borderWidth="0"> <p:barCode code="CUT" type="CODE128" barHeight="22.5" textSize="0" altText=""/> </p:cell> <p:cell borderWidth="0"> <p:font name="helvetica" style="bold" size="9">Finishing Specifications: </p:font> </p:cell> <p:cell borderWidth="0"> <p:barCode code="CUT 2 SIDES" type="CODE128" barHeight="22.5" textSize="0" altText=""/> </p:cell> </p:table> </p:cell> </p:table> </p:document>