title: Creating 1D Barcode using the Google Chart API /ZXING library
body: <p>I am trying to create 1D barcodes using PHP.I have been able to create the 2 D Qr code using the google chart api like this:</p>
  
  <pre><code> $size = $_REQUEST['size'];
  $string = preg_replace('/\s+/','',$_REQUEST['content']);
  $content       = $string;//$_REQUEST['content'];
  $correction    = strtoupper($_REQUEST['correction']);
  $encoding      = $_REQUEST['encoding'];
  
  //form google chart api link
  $rootUrl = "https://chart.googleapis.com/chart?cht=qr&amp;chs=$size&amp;chl=$content&amp;choe=$encoding&amp;chld=$correction";
  
  //print out the image
  echo '&lt;img src="'.$rootUrl.'"&gt;';
  </code></pre>
  
  <p>This code simply generates the QR code.But i need barcode.What will i need to change in parameters to display it as 1D barcode??? Please note I am using PHP language and decoding data using Zxing library.Please help.Thanks</p>