diff options
Diffstat (limited to 'contrib/barcode/barcode_test.go')
-rw-r--r-- | contrib/barcode/barcode_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/barcode/barcode_test.go b/contrib/barcode/barcode_test.go index f2c57f1..c3c648c 100644 --- a/contrib/barcode/barcode_test.go +++ b/contrib/barcode/barcode_test.go @@ -47,6 +47,19 @@ func ExampleRegisterCodabar() { // Successfully generated ../../pdf/contrib_barcode_RegisterCodabar.pdf } +func ExampleRegisterAztec() { + pdf := createPdf() + + key := barcode.RegisterAztec(pdf, "aztec", 33, 0) + barcode.Barcode(pdf, key, 15, 15, 100, 100, false) + + fileStr := example.Filename("contrib_barcode_RegisterAztec") + err := pdf.OutputFileAndClose(fileStr) + example.Summary(err, fileStr) + // Output: + // Successfully generated ../../pdf/contrib_barcode_RegisterAztec.pdf +} + func ExampleRegisterCode128() { pdf := createPdf() |