dongtuan5367 2013-05-10 06:36
浏览 139
已采纳

2D矩阵条形码在cakephp中的tcpdf供应商中为动态字符串生成错误的条形码

I need to generate 2D Matrix Barcode using TCPDF vendor in cakephp. But write2DBarcode generate wrong barcode.

I have generate string dynamically for it, and passing it to write2DBarcode function. my string is

A|3720001373|372aaaadS0|CC|826|B33 8TH|001|001||Chetan|Panchal||Abu Dhabi||Ballingarry|123456|20130508170546-863|229894|4000|
|

string have 304 fix characters, so i have add spaces and last character '|' after '229894|4000|' for complete 304 characters as per the requirement. TCPDF generate matrix code but when i decode that Matrix code using Barcode Reader, its display only below string without spaces and last '|'

A|3720001373|372aaaadS0|CC|826|B33 8TH|001|001||Chetan|Panchal||Abu Dhabi||Ballingarry|123456|20130508170546-863|229894|4000|

If i pass string static then its generate perfect barcode. can anyone suggest me what is the issue with Barcode generator? or issue with my string?

  • 写回答

1条回答 默认 最新

  • douguan3470 2013-08-06 10:24
    关注

    Sometimes some barcode reader not working proper. you have to use another barcode reader for that. write2DBarcode generate always perfect barcode. try another barcode reader.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch