<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - page.text() does not take page orientation into account"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94517#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - page.text() does not take page orientation into account"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94517">bug 94517</a>
              from <span class="vcard"><a class="email" href="mailto:jeroen.ooms@stat.ucla.edu" title="Jeroen Ooms <jeroen.ooms@stat.ucla.edu>"> <span class="fn">Jeroen Ooms</span></a>
</span></b>
        <pre>This issue is still not fixed. I am now using a workaround in my applications
that doubles the width for landscape pages.

    page *p(doc->create_page(i));

    /* Workaround for bug <a href="https://github.com/ropensci/pdftools/issues/7">https://github.com/ropensci/pdftools/issues/7</a> */
    rectf target(p->page_rect());
    if(p->orientation() == page::landscape || p->orientation() ==
page::seascape){
      target.set_right(target.right() * 2);
    }

    /* Extract text */
    ustring str = p->text(target, page::physical_layout);

This is pretty ugly but it seems to at least get the text out of it.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>