From 5c1aa960f53b7e3678bd0f7075eb52d640438db3 Mon Sep 17 00:00:00 2001 From: "yusuke.shinyama.dummy" Date: Sun, 3 Feb 2008 11:47:24 +0000 Subject: [PATCH] git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@18 1aa58f4a-7d42-0410-adbc-911cccaed67c --- pdfinterp.py | 14 +++++++++++++- psparser.py | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) 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