diff --git a/cpp/poppler-page.cpp b/cpp/poppler-page.cpp index b8927b80..98b3a383 100644 --- a/cpp/poppler-page.cpp +++ b/cpp/poppler-page.cpp @@ -269,7 +269,7 @@ ustring page::text(const rectf &r, text_layout_enum layout_mode) const std::unique_ptr s; const GBool use_raw_order = (layout_mode == raw_order_layout); TextOutputDev td(0, gFalse, 0, use_raw_order, gFalse); - d->doc->doc->displayPage(&td, d->index + 1, 72, 72, 0, false, true, false); + d->doc->doc->displayPage(&td, d->index + 1, 72, 72, d->page->getRotate(), false, true, false); if (r.is_empty()) { const PDFRectangle *rect = d->page->getCropBox(); s.reset(td.getText(rect->x1, rect->y1, rect->x2, rect->y2));