From 43d47f3583dcb422a09a4e8e9d6441a56a6b7d9c Mon Sep 17 00:00:00 2001 From: Noah Metzger Date: Tue, 8 May 2018 17:22:06 +0200 Subject: [PATCH] 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 --- src/api/renderer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/renderer.h b/src/api/renderer.h index e6c1ad5c23..e06ee81e1e 100644 --- a/src/api/renderer.h +++ b/src/api/renderer.h @@ -187,7 +187,7 @@ class TESS_API TessPDFRenderer : public TessResultRenderer { public: // datadir is the location of the TESSDATA. We need it because // we load a custom PDF font from this location. - TessPDFRenderer(const char* outputbase, const char* datadir, bool textonly); + TessPDFRenderer(const char* outputbase, const char* datadir, bool textonly = false); protected: virtual bool BeginDocumentHandler();