Skip to content

Commit

Permalink
Use unsigned offsets for PDF
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 3, 2022
1 parent ac7adc8 commit 9aa81cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/tesseract/renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::int64_t> offsets_; // offset of every PDF object in bytes
std::vector<long int> 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<uint64_t> offsets_; // offset of every PDF object in bytes
std::vector<long int> 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.
Expand Down

0 comments on commit 9aa81cd

Please sign in to comment.