diff --git a/Makefile b/Makefile
index 126ea20..0e793c5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# Makefile for pdfminer
PACKAGE=pdfminer
-VERSION=20080427
+VERSION=20080429
GNUTAR=tar
SVN=svn
PYTHON=python
diff --git a/README.html b/README.html
index e8487e6..9d93c09 100644
--- a/README.html
+++ b/README.html
@@ -11,7 +11,7 @@ blockquote { background: #eeeeee; }
PDFMiner
-Last Modified: Sun Apr 27 20:54:51 JST 2008
+Last Modified: Tue Apr 29 20:16:22 JST 2008
@@ -44,8 +44,8 @@ http://www.unixuser.org/~euske/python/pdfminer/index.html
Download (source):
-
-http://www.unixuser.org/~euske/python/pdfminer/pdfminer-dist-20080427.tar.gz
+
+http://www.unixuser.org/~euske/python/pdfminer/pdfminer-dist-20080429.tar.gz
(1.8Mbytes)
@@ -216,6 +216,7 @@ no stream header is displayed for the ease of saving it to a file.
Changes
+- 2007/04/29: Bugfix for Win32. Thanks to Chris Clark.
- 2007/04/27: Basic encryption and LZW decoding support added.
- 2007/01/07: Several bugfixes. Thanks to Nick Fabry for his contribution.
- 2007/12/31: Initial release.
diff --git a/cmap.py b/cmap.py
index 62557c4..5ef99fc 100644
--- a/cmap.py
+++ b/cmap.py
@@ -199,7 +199,7 @@ class CMapDB:
if 1 <= klass.debug:
print >>stderr, 'Reading: CMap %r...' % fname
cmap = CMap()
- fp = file(fname)
+ fp = file(fname, 'rb')
CMapParser(cmap, fp, debug=klass.debug).run()
fp.close()
elif not strict:
diff --git a/dumppdf.py b/dumppdf.py
index 632ebe3..e7ef15b 100755
--- a/dumppdf.py
+++ b/dumppdf.py
@@ -99,7 +99,7 @@ def dumpallobjs(out, doc):
def dumppdf(outfp, fname, objids, pageids, password='',
dumpall=False, codec=None, debug=0):
doc = PDFDocument(debug=debug)
- fp = file(fname)
+ fp = file(fname, 'rb')
parser = PDFParser(doc, fp, debug=debug)
doc.initialize(password)
if objids:
@@ -151,7 +151,7 @@ def main(argv):
elif k == '-r': codec = 'raw'
elif k == '-b': codec = 'binary'
elif k == '-t': codec = 'text'
- elif k == '-o': outfp = file(v, 'w')
+ elif k == '-o': outfp = file(v, 'wb')
#
for fname in args:
dumppdf(outfp, fname, objids, pageids, password=password,
diff --git a/pdf2txt.py b/pdf2txt.py
index af308dd..a29bee8 100755
--- a/pdf2txt.py
+++ b/pdf2txt.py
@@ -171,7 +171,7 @@ class TextExtractionNotAllowed(RuntimeError): pass
def pdf2txt(outfp, rsrc, fname, pages, codec, password='', debug=0):
device = TextConverter(rsrc, debug=debug)
doc = PDFDocument(debug=debug)
- fp = file(fname)
+ fp = file(fname, 'rb')
parser = PDFParser(doc, fp, debug=debug)
try:
doc.initialize(password)