diff options
author | Ruud Kamphuis <ruudk@mphuis.com> | 2016-05-16 11:27:38 +0200 |
---|---|---|
committer | Ruud Kamphuis <ruudk@mphuis.com> | 2016-05-16 11:27:38 +0200 |
commit | 8dd14effba59e4816750d0009e644da1e44b073a (patch) | |
tree | a30ae84dda7ac41ee961042e53c55c115134d013 /contrib/barcode | |
parent | 4b43e5554e8c7b89e56d9e87b1b8977d1b89168c (diff) |
Pass columns and security level to Encode method
Diffstat (limited to 'contrib/barcode')
-rw-r--r-- | contrib/barcode/barcode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/barcode/barcode.go b/contrib/barcode/barcode.go index c5e4193..faed915 100644 --- a/contrib/barcode/barcode.go +++ b/contrib/barcode/barcode.go @@ -135,8 +135,8 @@ func RegisterDataMatrix(pdf barcodePdf, code string) string { // RegisterPdf417 registers a barcode of type Pdf417 to the PDF, but not // to the page. Use Barcode() with the return value to put the barcode on the // page. -func RegisterPdf417(pdf barcodePdf, code string) string { - bcode := pdf417.Encode(code) +func RegisterPdf417(pdf barcodePdf, code string, columns int, securityLevel int) string { + bcode := pdf417.Encode(code, columns, securityLevel) return registerBarcode(pdf, bcode, nil) } |