another bugfix
git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@156 1aa58f4a-7d42-0410-adbc-911cccaed67cpull/1/head
parent
d260967d12
commit
faa775897c
2
TODO
2
TODO
|
@ -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!)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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]')
|
||||
|
|
Loading…
Reference in New Issue