Merge branch 'master' of github.com:euske/pdfminer
commit
149652c072
|
@ -34,7 +34,7 @@ Features
|
|||
How to Install
|
||||
--------------
|
||||
|
||||
* Install Python 2.6 or newer. (**Python 3 is not supported.**)
|
||||
* Install Python 2.6 or newer. (**For Python 3 support have a look at [pdfminer.six](https://github.com/goulu/pdfminer)**).
|
||||
* Download the source code.
|
||||
* Unpack it.
|
||||
* Run `setup.py`:
|
||||
|
|
|
@ -162,6 +162,7 @@ ENCODING = [
|
|||
('mu', None, 181, 181, 181),
|
||||
('multiply', None, None, 215, 215),
|
||||
('n', 110, 110, 110, 110),
|
||||
('nbspace', None, 202, 160, None),
|
||||
('nine', 57, 57, 57, 57),
|
||||
('ntilde', None, 150, 241, 241),
|
||||
('numbersign', 35, 35, 35, 35),
|
||||
|
|
|
@ -11,7 +11,7 @@ from sys import maxint as INF
|
|||
def apply_png_predictor(pred, colors, columns, bitspercomponent, data):
|
||||
if bitspercomponent != 8:
|
||||
# unsupported
|
||||
raise ValueError(bitspercomponent)
|
||||
raise ValueError("Unsupported `bitspercomponent': %d"%bitspercomponent)
|
||||
nbytes = colors*columns*bitspercomponent//8
|
||||
i = 0
|
||||
buf = b''
|
||||
|
@ -43,7 +43,7 @@ def apply_png_predictor(pred, colors, columns, bitspercomponent, data):
|
|||
line2 += chr(c)
|
||||
else:
|
||||
# unsupported
|
||||
raise ValueError(ft)
|
||||
raise ValueError("Unsupported predictor value: %d"%ft)
|
||||
buf += line2
|
||||
line0 = line2
|
||||
return buf
|
||||
|
|
Loading…
Reference in New Issue