tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.18k stars 1.51k forks source link

PDF417 produces wrong output #488

Closed bayramarslan closed 3 months ago

bayramarslan commented 2 years ago

image

PDF417 produces wrong output as above when generating barcode. The php configuration on the server I was working on was as follows.

[bcmath]
; Number of decimal digits for all bcmath functions.
; http://php.net/bcmath.scale
bcmath.scale = 8

For the solution, the scale parameter should be entered as 0 in the bcmod() and bcdiv() functions.

Barcode value

0348539000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

williamdes commented 2 years ago

Please keep this one open :)

williamdes commented 1 year ago

Same If it's not fixed keep it open