1 //========================================================================
2 //
3 // PDF417Barcode.h
4 //
5 // Copyright 2018 Glyph & Cog, LLC
6 //
7 //========================================================================
8 
9 #ifndef PDF417BARCODE_H
10 #define PDF417BARCODE_H
11 
12 #include <aconf.h>
13 
14 #ifdef USE_GCC_PRAGMAS
15 #pragma interface
16 #endif
17 
18 class GString;
19 
20 // Draw a PDF417 barcode:
21 // fieldWidth, fieldHeight = field size (in points)
22 // moduleWidth, moduleHeight = requested module size (in points)
23 // errorCorrectionLevel = 0 .. 8
24 // value = byte string
25 // output is appended to appearBuf
26 // Returns true on success, false on error.
27 extern GBool drawPDF417Barcode(double fieldWidth, double fieldHeight,
28 			       double moduleWidth, double moduleHeight,
29 			       int errorCorrectionLevel, GString *value,
30 			       GString *appearBuf);
31 
32 #endif
33