English 中文(简体)
TCPDF ERROR: Error in 1D barcodestring
原标题:TCPDF ERROR: Error in 1D barcode string

将下列错误带在pdf文件中生成1D条条条码图像,同时使用tcpdf模块制作各种条码。

“TCDF EAROR: Error in 1D条条条形形形形形形形形形形形形形形形色色色体”

if (file_exists("data1.txt")) 
{
echo("<B>File Exists data1.txt</B>");
$arrText = file("data1.txt");
for ($i=0; $i<count($arrText); $i++) 
{
echo("<P>$arrText[$i]</P>");
$pdf->write1DBarcode(" ".chop($arrText[$i])." ",  UPCA ,   ,   ,   , 18, 0.4, $style,  N );
$pdf->Ln();
}
} 
else 
{
echo("<B>Cannot find file</B>");
exit;
}
问题回答

Normally this means that you are try to create a barcode using unsupported characters. Each barcode type support only a character subset so, it is up to you to verify the code.

考虑到UTF-8特性,通常不接受。 检查你试图用来获取更多信息、好车的密码类型。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签