[Poppler-bugs] [Bug 103798] libpoppler cannot recreate pdftotext output, because physical_layout is not handled correctly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 18 13:39:44 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103798

--- Comment #6 from dummydummy at gmx.fr ---
Thank you very much for the speedy reply! 

My first ever attempt at using git failed:
$ git clone https://anongit.freedesktop.org/git/poppler/poppler.git
Cloning into 'poppler'...
fatal: unable to access
'https://anongit.freedesktop.org/git/poppler/poppler.git/': 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"
https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/nUrVMIG-r0o

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?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20171118/c91308c0/attachment.html>


More information about the Poppler-bugs mailing list