Fix typos
parent
3068dcdb4a
commit
5ddbecb551
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
## Makefile (for maintainance purpose)
|
## Makefile (for maintenance purpose)
|
||||||
##
|
##
|
||||||
|
|
||||||
PACKAGE=pdfminer
|
PACKAGE=pdfminer
|
||||||
|
|
|
@ -5,7 +5,7 @@ to decode text data written in CJK (Chinese, Japanese, Korean) language.
|
||||||
CMap resources are now available freely from Adobe web site:
|
CMap resources are now available freely from Adobe web site:
|
||||||
http://opensource.adobe.com/wiki/display/cmap/CMap+Resources
|
http://opensource.adobe.com/wiki/display/cmap/CMap+Resources
|
||||||
|
|
||||||
The follwing files were extracted from the downloadable tarballs:
|
The following files were extracted from the downloadable tarballs:
|
||||||
|
|
||||||
cid2code_Adobe_CNS1.txt:
|
cid2code_Adobe_CNS1.txt:
|
||||||
http://download.macromedia.com/pub/opensource/cmap/cmapresources_cns1-6.tar.z
|
http://download.macromedia.com/pub/opensource/cmap/cmapresources_cns1-6.tar.z
|
||||||
|
|
|
@ -185,7 +185,7 @@ class TextConverter(PDFConverter):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Some dummy functions to save memory/CPU when all that is wanted
|
# Some dummy functions to save memory/CPU when all that is wanted
|
||||||
# is text. This stops all the image and drawing ouput from being
|
# is text. This stops all the image and drawing output from being
|
||||||
# recorded and taking up RAM.
|
# recorded and taking up RAM.
|
||||||
def render_image(self, name, stream):
|
def render_image(self, name, stream):
|
||||||
if self.imagewriter is None:
|
if self.imagewriter is None:
|
||||||
|
|
|
@ -110,7 +110,7 @@ def decipher_all(decipher, objid, genno, x):
|
||||||
return x
|
return x
|
||||||
|
|
||||||
|
|
||||||
# Type cheking
|
# Type checking
|
||||||
def int_value(x):
|
def int_value(x):
|
||||||
x = resolve1(x)
|
x = resolve1(x)
|
||||||
if not isinstance(x, int):
|
if not isinstance(x, int):
|
||||||
|
|
|
@ -247,7 +247,7 @@ class PSBaseParser(object):
|
||||||
return (linepos, linebuf)
|
return (linepos, linebuf)
|
||||||
|
|
||||||
def revreadlines(self):
|
def revreadlines(self):
|
||||||
"""Fetches a next line backword.
|
"""Fetches a next line backward.
|
||||||
|
|
||||||
This is used to locate the trailers at the end of a file.
|
This is used to locate the trailers at the end of a file.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -197,7 +197,7 @@ class WebApp(object):
|
||||||
convert(item.file, self.outfp, tmppath, pagenos=pagenos, codec=self.codec,
|
convert(item.file, self.outfp, tmppath, pagenos=pagenos, codec=self.codec,
|
||||||
maxpages=self.MAXPAGES, maxfilesize=self.MAXFILESIZE, html=html)
|
maxpages=self.MAXPAGES, maxfilesize=self.MAXFILESIZE, html=html)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.put('<p>Sorry, an error has occured: %s' % q(repr(e)))
|
self.put('<p>Sorry, an error has occurred: %s' % q(repr(e)))
|
||||||
self.logger.error('convert: %r: path=%r: %s' % (e, traceback.format_exc()))
|
self.logger.error('convert: %r: path=%r: %s' % (e, traceback.format_exc()))
|
||||||
finally:
|
finally:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue