git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@18 1aa58f4a-7d42-0410-adbc-911cccaed67c
parent
366143361f
commit
5c1aa960f5
14
pdfinterp.py
14
pdfinterp.py
|
@ -174,9 +174,14 @@ class PDFType1Font(PDFSimpleFont):
|
||||||
PDFSimpleFont.__init__(self, descriptor, widths, spec)
|
PDFSimpleFont.__init__(self, descriptor, widths, spec)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '<PDFType1Font: basefont=%r>' % self.basefont
|
||||||
|
|
||||||
# PDFTrueTypeFont
|
# PDFTrueTypeFont
|
||||||
class PDFTrueTypeFont(PDFType1Font):
|
class PDFTrueTypeFont(PDFType1Font):
|
||||||
pass
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '<PDFTrueTypeFont: basefont=%r>' % self.basefont
|
||||||
|
|
||||||
# PDFType3Font
|
# PDFType3Font
|
||||||
class PDFType3Font(PDFSimpleFont):
|
class PDFType3Font(PDFSimpleFont):
|
||||||
|
@ -194,6 +199,10 @@ class PDFType3Font(PDFSimpleFont):
|
||||||
PDFSimpleFont.__init__(self, descriptor, widths, spec)
|
PDFSimpleFont.__init__(self, descriptor, widths, spec)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '<PDFType3Font>'
|
||||||
|
|
||||||
|
|
||||||
# PDFCIDFont
|
# PDFCIDFont
|
||||||
|
|
||||||
## TrueTypeFont
|
## TrueTypeFont
|
||||||
|
@ -339,6 +348,9 @@ class PDFCIDFont(PDFFont):
|
||||||
PDFFont.__init__(self, descriptor, widths, default_width)
|
PDFFont.__init__(self, descriptor, widths, default_width)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '<PDFCIDFont: basefont=%r, cidcoding=%r>' % (self.basefont, self.cidcoding)
|
||||||
|
|
||||||
def is_vertical(self):
|
def is_vertical(self):
|
||||||
return self.vertical
|
return self.vertical
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import sys, re
|
||||||
stderr = sys.stderr
|
stderr = sys.stderr
|
||||||
from utils import choplist
|
from utils import choplist
|
||||||
|
|
||||||
STRICT = 1
|
STRICT = 0
|
||||||
|
|
||||||
|
|
||||||
## PS Exceptions
|
## PS Exceptions
|
||||||
|
|
Loading…
Reference in New Issue