Re: [請益] QR code image generator and decoder
兩種做法:
1.Google Api
$url = urlencode("1234");
$image = imagecreatefrompng("http://chart.apis.google.com/chart?cht=qr&chs=120x120&chl=$url");
imagepng($image, "file.png");
$pdf->Image("file.png", 56, 3 , 8, 8);
用google api產生圖檔套PDF
2.用套件(QRcode或barcode套件)產生
$url = urlencode("TEST 1234");
$image = imagecreatefrompng("http://localhost/barcode/html/image.php?code=code39&o=1&t=30&r=1&f=2&a1=&a2=&text=$url");
imagepng($image, "file.png");
$pdf->Image("file.png", 52, 3 , 12, 6);
在local端用套件產生圖檔套PDF
Barcode:http://codeslibrary.net/sc.php?id=7613&code=Barcode%20Generator
QRcode:http://phpqrcode.sourceforge.net/#home
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.249.38.187
推
05/21 13:53, , 1F
05/21 13:53, 1F
→
05/21 13:54, , 2F
05/21 13:54, 2F
→
05/21 13:55, , 3F
05/21 13:55, 3F
→
05/21 15:10, , 4F
05/21 15:10, 4F
→
05/21 15:12, , 5F
05/21 15:12, 5F
→
05/21 16:40, , 6F
05/21 16:40, 6F
→
05/21 16:41, , 7F
05/21 16:41, 7F
→
05/21 18:55, , 8F
05/21 18:55, 8F
推
05/21 21:06, , 9F
05/21 21:06, 9F
討論串 (同標題文章)