diff --git a/src/DumpAsTextDev.h b/src/DumpAsTextDev.h index 5c585b4..b72a28c 100644 --- a/src/DumpAsTextDev.h +++ b/src/DumpAsTextDev.h @@ -434,7 +434,7 @@ class DumpAsTextDev : public OutputDev { interpolate, inlineImg); } - void setSoftMaskFromImageMask(GfxState *state, Object *ref, Stream *str, + bool setSoftMaskFromImageMask(GfxState *state, Object *ref, Stream *str, int width, int height, bool invert, bool inlineImg, std::array &baseMatrix) { printf("setSoftMaskFromImageMask\n"); @@ -482,17 +482,17 @@ class DumpAsTextDev : public OutputDev { return OutputDev::endMarkedContent(state); } - void beginMarkedContent(const char *name, Dict *properties) { + void beginMarkedContent(const std::string &name, Dict *properties) { printf("beginMarkedContent\n"); return OutputDev::beginMarkedContent(name, properties); } - void markPoint(const char *name) { + void markPoint(const std::string &name) { printf("markPoint\n"); return OutputDev::markPoint(name); } - void markPoint(const char *name, Dict *properties) { + void markPoint(const std::string &name, Dict *properties) { printf("markPoint\n"); return OutputDev::markPoint(name, properties); } @@ -549,7 +549,7 @@ class DumpAsTextDev : public OutputDev { return OutputDev::paintTransparencyGroup(A, B); } - void setSoftMask(GfxState *A, const std::array &B, bool C, Function *D, GfxColor *E) { + void setSoftMask(GfxState *A, const std::array &B, bool C, Function *D, const GfxColor &E) { printf("setSoftMask\n"); return OutputDev::setSoftMask(A, B, C, D, E); } diff --git a/src/main.cpp b/src/main.cpp index 0d81c80..ebabd31 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -397,7 +398,7 @@ void dump_page_glyphs(Page *page) { PDFRectangle whole_page(-inf, -inf, inf, inf); - auto word_list = text->getSelectionWords(&whole_page, selectionStyleGlyph); + auto word_list = text->getSelectionWords(whole_page, selectionStyleGlyph); int total_glyphs = count_glyphs(word_list); diff --git a/vendor/github.com/cantabular/poppler b/vendor/github.com/cantabular/poppler index 4c00df0..d72e212 160000 --- a/vendor/github.com/cantabular/poppler +++ b/vendor/github.com/cantabular/poppler @@ -1 +1 @@ -Subproject commit 4c00df0b382b17b5d9a6562c524eb3e5d27b46e9 +Subproject commit d72e21264a928d7b5af185b594ea836b4bb2e5eb