aboutsummaryrefslogtreecommitdiff
path: root/xpdf/PDF417Barcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpdf/PDF417Barcode.h')
-rw-r--r--xpdf/PDF417Barcode.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/xpdf/PDF417Barcode.h b/xpdf/PDF417Barcode.h
new file mode 100644
index 0000000..8166865
--- /dev/null
+++ b/xpdf/PDF417Barcode.h
@@ -0,0 +1,32 @@
+//========================================================================
+//
+// PDF417Barcode.h
+//
+// Copyright 2018 Glyph & Cog, LLC
+//
+//========================================================================
+
+#ifndef PDF417BARCODE_H
+#define PDF417BARCODE_H
+
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
+#pragma interface
+#endif
+
+class GString;
+
+// Draw a PDF417 barcode:
+// fieldWidth, fieldHeight = field size (in points)
+// moduleWidth, moduleHeight = requested module size (in points)
+// errorCorrectionLevel = 0 .. 8
+// value = byte string
+// output is appended to appearBuf
+// Returns true on success, false on error.
+extern GBool drawPDF417Barcode(double fieldWidth, double fieldHeight,
+ double moduleWidth, double moduleHeight,
+ int errorCorrectionLevel, GString *value,
+ GString *appearBuf);
+
+#endif