another bugfix

git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@156 1aa58f4a-7d42-0410-adbc-911cccaed67c
pull/1/head
yusuke.shinyama.dummy 2009-11-07 09:01:11 +00:00
parent d260967d12
commit faa775897c
3 changed files with 7 additions and 3 deletions

2
TODO
View File

@ -4,4 +4,4 @@ TODOs:
- Better API Documentation.
- Robust error handling.
- Any special handling for linearized PDFs?
- Handle security handler. (I need more samples!)
- Handle crypt filter. (I need more samples!)

View File

@ -77,6 +77,9 @@ class ClusterSet(object):
self.i = 0
return
def __repr__(self):
return '<cset: %d>' % self.i
# add(objs): groups text objects if necessary.
def add(self, objs):
group = self.klass(self.i, objs)
@ -350,7 +353,7 @@ class LTTextLine(LayoutContainer):
return
def __repr__(self):
return ('<line %s(%s)>' % (self.get_bbox(), self.direction))
return ('<textline %s(%s)>' % (self.get_bbox(), self.direction))
def get_margin(self):
return min(self.width, self.height)

View File

@ -7,8 +7,9 @@
# -i objid : object id
#
import sys, re
from pdfminer.psparser import PSKeyword, PSLiteral
from pdfminer.pdfparser import PDFDocument, PDFParser
from pdfminer.pdftypes import PDFStream, PDFObjRef, PSKeyword, PSLiteral, resolve1
from pdfminer.pdftypes import PDFStream, PDFObjRef, resolve1
ESC_PAT = re.compile(r'[\000-\037&<>()\042\047\134\177-\377]')