fix another binary-mode issue
This commit is contained in:
parent
eb17d81316
commit
d4f49c05c5
1
pdf.js
1
pdf.js
@ -2971,6 +2971,7 @@ var Catalog = (function() {
|
|||||||
|
|
||||||
var PDFDoc = (function() {
|
var PDFDoc = (function() {
|
||||||
function constructor(stream) {
|
function constructor(stream) {
|
||||||
|
assertWellFormed(stream.length > 0, "stream must have data");
|
||||||
this.stream = stream;
|
this.stream = stream;
|
||||||
this.setup();
|
this.setup();
|
||||||
}
|
}
|
||||||
|
@ -275,7 +275,7 @@ def downloadLinkedPDFs(manifestList):
|
|||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
response = urllib2.urlopen(link)
|
response = urllib2.urlopen(link)
|
||||||
|
|
||||||
with open(f, 'w') as out:
|
with open(f, 'wb') as out:
|
||||||
out.write(response.read())
|
out.write(response.read())
|
||||||
|
|
||||||
print 'done'
|
print 'done'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user