title: Datamatrix 16x48 with TCPDF library for PHP
body: <p>i need to print a datamatrix code on my pdf.</p>
  
  <p>Requested format by documentation is 16x48 datamatrix ECC 200.</p>
  
  <p>Example code is this: 18800000571920119916120010109364801000000128003896</p>
  
  <p>Result must be this one: <img src="https://i.stack.imgur.com/h2eej.jpg" alt=""></p>
  
  <p>I'm using TCPDF library for PHP, and this is my code:</p>
  
  <pre><code>$code = '18800000571920119916120010109364801000000128003896';
  $style = array(
      'border' =&gt; true,
      'vpadding' =&gt; 'auto',
      'hpadding' =&gt; 'auto',
      'fgcolor' =&gt; array(0,0,0),
      'bgcolor' =&gt; false, //array(255,255,255)
      'module_width' =&gt; 1, // width of a single module in points
      'module_height' =&gt; 1, // height of a single module in points
      'position' =&gt; 'S'
  );
  $pdf-&gt;write2DBarcode($code, 'DATAMATRIX', 150, 10, 80, 50, $style, 'N', true);
  </code></pre>
  
  <p>In the include/barcodes/datamatrix.php file, i commented all the sizes of datamatrix leaving only 16x48 (because if i leave all, i get a 32x32 size by standard).</p>
  
  <p>This is what i get:</p>
  
  <p><img src="https://i.stack.imgur.com/Aq300.jpg" alt=""></p>
  
  <p>Left part is pretty similar to the correct result, but the right part is completely white!!!</p>
  
  <p>What am i doing wrong?</p>