documentation bit and code cleanup

git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@263 1aa58f4a-7d42-0410-adbc-911cccaed67c
pull/1/head
yusuke.shinyama.dummy 2010-10-18 15:04:49 +00:00
parent 71863aec67
commit 438b4953be
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<div align=right class=lastmod> <div align=right class=lastmod>
<!-- hhmts start --> <!-- hhmts start -->
Last Modified: Sun Oct 17 09:20:32 UTC 2010 Last Modified: Sun Oct 17 09:25:27 UTC 2010
<!-- hhmts end --> <!-- hhmts end -->
</div> </div>
@ -33,7 +33,7 @@ Python PDF parser and analyzer
<ul> <ul>
<li> <a href="#pdf2txt">pdf2txt.py</a> <li> <a href="#pdf2txt">pdf2txt.py</a>
<li> <a href="#dumppdf">dumppdf.py</a> <li> <a href="#dumppdf">dumppdf.py</a>
<li> <a href="programming.html">PDFMiner as library</a> <li> <a href="programming.html">PDFMiner API</a>
</ul> </ul>
<li> <a href="#changes">Changes</a> <li> <a href="#changes">Changes</a>
<li> <a href="#todo">TODO</a> <li> <a href="#todo">TODO</a>

View File

@ -599,6 +599,7 @@ class LTAnalyzer(LTContainer):
(max(obj1.y1,obj2.y1) - min(obj1.y0,obj2.y0)) - (max(obj1.y1,obj2.y1) - min(obj1.y0,obj2.y0)) -
(obj1.width*obj1.height + obj2.width*obj2.height)) (obj1.width*obj1.height + obj2.width*obj2.height))
textboxes = textboxes[:] textboxes = textboxes[:]
# XXX this is slow when there're many textboxes.
while 2 <= len(textboxes): while 2 <= len(textboxes):
mindist = INF mindist = INF
minpair = None minpair = None