SetEncoding(ENCODING_BASE256); // Create the image backend (default) $backend = DatamatrixBackendFactory::Create($encoder, BACKEND_ASCII); $backend->SetModuleWidth(3); try { $ps_txt = $backend->Stroke($data); echo '
'.$ps_txt.'
'; } catch (Exception $e) { $errstr = $e->GetMessage(); echo "Datamatrix error message: $errstr\n"; } ?>