Skip to content

Commit 43d47f3

Browse files
committed
Added downward compatibility for older APIs
The commit effa574 in 20.01.2017 added the bool textonly to the constructor of TessPDFRenderer. To maintain the compatibility to older APIs which are still using only two parameter, a default value for the textonly parameter is set. Signed-off-by: Noah Metzger <noah.metzger@bib.uni-mannheim.de>
1 parent 2193f81 commit 43d47f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/renderer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class TESS_API TessPDFRenderer : public TessResultRenderer {
187187
public:
188188
// datadir is the location of the TESSDATA. We need it because
189189
// we load a custom PDF font from this location.
190-
TessPDFRenderer(const char* outputbase, const char* datadir, bool textonly);
190+
TessPDFRenderer(const char* outputbase, const char* datadir, bool textonly = false);
191191

192192
protected:
193193
virtual bool BeginDocumentHandler();

0 commit comments

Comments
 (0)