diff --git a/pdfinterp.py b/pdfinterp.py index 7aa3f22..ab0bf8f 100644 --- a/pdfinterp.py +++ b/pdfinterp.py @@ -174,9 +174,14 @@ class PDFType1Font(PDFSimpleFont): PDFSimpleFont.__init__(self, descriptor, widths, spec) return + def __repr__(self): + return '' % self.basefont + # PDFTrueTypeFont class PDFTrueTypeFont(PDFType1Font): - pass + + def __repr__(self): + return '' % self.basefont # PDFType3Font class PDFType3Font(PDFSimpleFont): @@ -194,6 +199,10 @@ class PDFType3Font(PDFSimpleFont): PDFSimpleFont.__init__(self, descriptor, widths, spec) return + def __repr__(self): + return '' + + # PDFCIDFont ## TrueTypeFont @@ -339,6 +348,9 @@ class PDFCIDFont(PDFFont): PDFFont.__init__(self, descriptor, widths, default_width) return + def __repr__(self): + return '' % (self.basefont, self.cidcoding) + def is_vertical(self): return self.vertical diff --git a/psparser.py b/psparser.py index 49893be..63175bb 100644 --- a/psparser.py +++ b/psparser.py @@ -3,7 +3,7 @@ import sys, re stderr = sys.stderr from utils import choplist -STRICT = 1 +STRICT = 0 ## PS Exceptions