From 9aa81cddbf85a7696d92e03206dd725516be6ff1 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 3 May 2022 08:22:01 +0200 Subject: [PATCH] Use unsigned offsets for PDF Signed-off-by: Stefan Weil --- include/tesseract/renderer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/tesseract/renderer.h b/include/tesseract/renderer.h index 25af9f468d..6f40523335 100644 --- a/include/tesseract/renderer.h +++ b/include/tesseract/renderer.h @@ -230,11 +230,11 @@ class TESS_API TessPDFRenderer : public TessResultRenderer { // PDFs one page at a time. At the end, that metadata is // used to make everything that isn't easily handled in a // streaming fashion. - long int obj_; // counter for PDF objects - std::vector offsets_; // offset of every PDF object in bytes - std::vector pages_; // object number for every /Page object - std::string datadir_; // where to find the custom font - bool textonly_; // skip images if set + long int obj_; // counter for PDF objects + std::vector offsets_; // offset of every PDF object in bytes + std::vector pages_; // object number for every /Page object + std::string datadir_; // where to find the custom font + bool textonly_; // skip images if set // Bookkeeping only. DIY = Do It Yourself. void AppendPDFObjectDIY(size_t objectsize); // Bookkeeping + emit data.