summaryrefslogtreecommitdiff
path: root/contrib/barcode/barcode_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/barcode/barcode_test.go')
-rw-r--r--contrib/barcode/barcode_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/barcode/barcode_test.go b/contrib/barcode/barcode_test.go
index c12ff12..f2c57f1 100644
--- a/contrib/barcode/barcode_test.go
+++ b/contrib/barcode/barcode_test.go
@@ -124,3 +124,16 @@ func ExampleRegisterTwoOfFive() {
// Output:
// Successfully generated ../../pdf/contrib_barcode_RegisterTwoOfFive.pdf
}
+
+func ExampleRegisterPdf417() {
+ pdf := createPdf()
+
+ key := barcode.RegisterPdf417(pdf, "1234567895", 10, 5)
+ barcode.Barcode(pdf, key, 15, 15, 100, 20, false)
+
+ fileStr := example.Filename("contrib_barcode_RegisterPdf417")
+ err := pdf.OutputFileAndClose(fileStr)
+ example.Summary(err, fileStr)
+ // Output:
+ // Successfully generated ../../pdf/contrib_barcode_RegisterPdf417.pdf
+}