<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - pdftotext breaks sentence in middle of sentence when text overflow the box, whereas pdftohtml captures the full sentence."
href="https://bugs.freedesktop.org/show_bug.cgi?id=99824">99824</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>pdftotext breaks sentence in middle of sentence when text overflow the box, whereas pdftohtml captures the full sentence.
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>utils
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gauravarora.daiict@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=129623" name="attach_129623" title="sample pdf which is facing this issue">attachment 129623</a> <a href="attachment.cgi?id=129623&action=edit" title="sample pdf which is facing this issue">[details]</a></span>
sample pdf which is facing this issue
While analyzing some specific set of files, we realized that lines generated by
pdftohtml and pdftotext is different where text overflows the line boundary of
box.
In case of pdftohtml the line is captured normally with full text of that line
in a single text element. Whereas in case of pdftotext line is broken in middle
of word and the rest of line is added as a separate line.
Explanation with example below:
Line as appear in pdftohtml output:
<text top="412" left="79" width="1021" height="17" font="0">To JOSEPH E. BLUTH
for research and development in the field of electronic photography and
transfer of video tape to motion picture film. [Laboratory]</text>
Line as appear in pdftotext
To JOSEPH E. BLUTH for research and development in the field of electronic
photography and transfer of video tape to mo
.
.
.
.
.
sfer of video tape to motion picture film. [Laboratory]
Line as it appear in pdf file:
<a href="http://i67.tinypic.com/i6w66e.png">http://i67.tinypic.com/i6w66e.png</a>
Even though pdf file doesn't show this line correctly. pdftohtml is correctly
able to get the full line, hence pdftotext can also handle and get the full
line.
It seems weird for line to be broken like this. I have attached a sample pdf
file which shows this bug. I have tested the the file with poppler-0.51.0
/poppler/tmp/poppler-0.51.0$ /usr/local/bin/pdftotext -v
pdftotext version 0.51.0
Copyright 2005-2017 The Poppler Developers - <a href="http://poppler.freedesktop.org">http://poppler.freedesktop.org</a>
Copyright 1996-2011 Glyph & Cog, LLC</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>