summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/xpdf-src/xpdf/PDF417Barcode.h
blob: 8166865280b0f705f1cdb0618f5ee5fcaa7a563c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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