diff --git a/cpp/tests/poppler-dump.cpp b/cpp/tests/poppler-dump.cpp index c03f0de99..a160ef633 100644 --- a/cpp/tests/poppler-dump.cpp +++ b/cpp/tests/poppler-dump.cpp @@ -337,12 +337,13 @@ static void print_page_text_list(poppler::page *p) std::cout << "---" << std::endl; for (size_t i = 0; i < text_list.size(); i ++) { - poppler::rectf bbox = text_list[i]->bbox(); - poppler::ustring ustr = text_list[i]->text(); - std::string font_name = text_list[i]->get_font_name(0); + poppler::text_box* tb = text_list[i]; + poppler::rectf bbox = tb->bbox(); + poppler::ustring ustr = tb->text(); + std::string font_name = tb->get_font_name(0); std::cout << "[" << ustr << "] @ "; std::cout << "( x=" << bbox.x() << " y=" << bbox.y() << " w=" << bbox.width() << " h=" << bbox.height() << " )"; - std::cout << "( fontname=" << font_name << " )"; + std::cout << "( fontname=" << font_name << " fontsize=" << tb->get_font_size() << " wmode=" << tb->get_wmode() << " )"; std::cout << std::endl; delete text_list[i];