title: How to change size of barcode img generated by barcode4j on primefaces
body: <p>i'm using primefaces to generated some barcodes (in cod128 format), the primefaces tags works pretty well but the client want the output image (with the codes) at some specific size (1cm of height and 8cm of width), so that's the question:</p>
  
  <p>How i can show a fixed output of the generated barcode at some specific size?</p>
  
  <p>Here is some snippet of my code:</p>
  
  <pre><code>&lt;h:body&gt;
      &lt;p:panelGrid columns="2"&gt;
  
      &lt;h:outputText value="Code128" /&gt;
      &lt;p:barcode value="0123456789" type="code128"/&gt;
  
  &lt;/p:panelGrid&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>i'm using this for reference: <a href="http://www.primefaces.org/showcase/ui/multimedia/barcode.xhtml" rel="nofollow">http://www.primefaces.org/showcase/ui/multimedia/barcode.xhtml</a></p>
  
  <p>Thanks :)</p>