From 8dd14effba59e4816750d0009e644da1e44b073a Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Mon, 16 May 2016 11:27:38 +0200 Subject: Pass columns and security level to Encode method --- contrib/barcode/barcode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') 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) } -- cgit v1.2.1-24-ge1ad