summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRuud Kamphuis <ruudk@mphuis.com>2016-05-16 11:27:38 +0200
committerRuud Kamphuis <ruudk@mphuis.com>2016-05-16 11:27:38 +0200
commit8dd14effba59e4816750d0009e644da1e44b073a (patch)
treea30ae84dda7ac41ee961042e53c55c115134d013 /contrib
parent4b43e5554e8c7b89e56d9e87b1b8977d1b89168c (diff)
Pass columns and security level to Encode method
Diffstat (limited to 'contrib')
-rw-r--r--contrib/barcode/barcode.go4
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)
}