Skip to content

Commit

Permalink
Added downward compatibility for older APIs
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
noahmetzger committed May 8, 2018
1 parent 2193f81 commit 43d47f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 43d47f3

Please sign in to comment.