When extracting text from a landscape pdf file using the cpp
interface, text at the far right of the page does not get extracted .I
think the problem is that page.text() always assumes portrait
orientation and hence underestimates the width of the page:

  p->text()
  p->text(p->page_rect())

Is this expected? What is the best way to extract all text from the
page, irrespective of size and orientation?

An example landscape pdf is here:
https://github.com/ropensci/pdftools/files/161587/waurika_news_democrat.pdf
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to