<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - libpoppler cannot recreate pdftotext output, because physical_layout is not handled correctly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103798#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - libpoppler cannot recreate pdftotext output, because physical_layout is not handled correctly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103798">bug 103798</a>
from <span class="vcard"><a class="email" href="mailto:dummydummy@gmx.fr" title="dummydummy@gmx.fr">dummydummy@gmx.fr</a>
</span></b>
<pre>Thank you very much for the speedy reply!
My first ever attempt at using git failed:
$ git clone <a href="https://anongit.freedesktop.org/git/poppler/poppler.git">https://anongit.freedesktop.org/git/poppler/poppler.git</a>
Cloning into 'poppler'...
fatal: unable to access
'<a href="https://anongit.freedesktop.org/git/poppler/poppler.git/">https://anongit.freedesktop.org/git/poppler/poppler.git/</a>': gnutls_handshake()
failed: Public key signature verification has failed.
This is a bug from sept. 2016 "Bug#835342: curl or git clone commands throws
"gnutls_handshake() failed" on https targets"
<a href="https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/nUrVMIG-r0o">https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/nUrVMIG-r0o</a>
So I just downloaded poppler-0.61.1.tar.xz and
used diff -u as follows to produce the attached files:
$ diff -u poppler-page.cpp new_poppler-page.cpp >fix_cpp.patch
$ diff -u poppler-page.h new_poppler-page.h >fix_h.patch
The changes are fairly small:
in poppler-page.h:
added a further enum default_layout in line 50 and comments in the 2 lines
above
in poppler-page.cpp:
added the following line after line 272
const GBool use_physical_layout = (physical_layout == layout_mode);
used the new variable use_physical_layout in line 274 as second parameter to
TextOutputDev
and for cosmetic reasons, swapped the order of layout_mode and
raw_order_layout in line 272 (if ever I mistype == as =, this order makes the
compiler complain :-)
Is there anything else I can do to resolve this problem?</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>