Comparing version 2.3.5 to 2.3.6
@@ -9,2 +9,8 @@ # Changelog | ||
## [2.3.6] - 2020-04-28 | ||
### Fixed | ||
- allow any whitespace between obj version and rev numbers when parsing PDF (fixes parsing of some PDF) | ||
- trim whitespace before starting to parse a PDF object (fixes parsing of MS print to PDF documents) | ||
- fix color space of embedded grayscale JPEGs #210 | ||
## [2.3.5] - 2020-03-03 | ||
@@ -11,0 +17,0 @@ ### Fixed |
@@ -45,3 +45,3 @@ 'use strict' | ||
case 1: | ||
this.colorSpace = 'DeviceGRAY' | ||
this.colorSpace = 'DeviceGray' | ||
break | ||
@@ -48,0 +48,0 @@ } |
@@ -56,3 +56,3 @@ 'use strict' | ||
throw new Error('Invalid name') | ||
throw new Error('Name must start with a leading slash, found: ' + lexer.getString(1)) | ||
} | ||
@@ -59,0 +59,0 @@ |
@@ -42,2 +42,3 @@ 'use strict' | ||
lexer.skipWhitespace(null, true) | ||
const id = lexer.readNumber(trial) | ||
@@ -47,3 +48,3 @@ if (id === undefined && !trial) { | ||
} | ||
lexer.skipSpace(1, trial) | ||
lexer.skipWhitespace(1, trial) | ||
const generation = lexer.readNumber(trial) | ||
@@ -54,3 +55,3 @@ if (generation === undefined && !trial) { | ||
lexer.skipSpace(1, trial) | ||
lexer.skipWhitespace(1, trial) | ||
if (lexer.getString(3) !== 'obj') { | ||
@@ -57,0 +58,0 @@ if (trial) { |
@@ -35,3 +35,3 @@ 'use strict' | ||
lexer.skipSpace(1, trial) | ||
lexer.skipWhitespace(1, trial) | ||
const generation = lexer.readNumber(trial) | ||
@@ -42,3 +42,3 @@ if (generation === undefined && !trial) { | ||
lexer.skipSpace(1, trial) | ||
lexer.skipWhitespace(1, trial) | ||
if (lexer.getString(1) !== 'R') { | ||
@@ -45,0 +45,0 @@ if (trial) { |
@@ -156,3 +156,3 @@ 'use strict' | ||
if (!trial) { | ||
this._error('Invalid number: ' + String.fromCharCode(c)) | ||
this._error('Invalid number at ' + this.pos + ': ' + String.fromCharCode(c) + ' (code: ' + c + ')') | ||
} | ||
@@ -159,0 +159,0 @@ this.pos = before |
{ | ||
"name": "pdfjs", | ||
"author": "Markus Ast <npm.m@rkusa.st>", | ||
"version": "2.3.5", | ||
"version": "2.3.6", | ||
"description": "A Portable Document Format (PDF) generation library targeting both the server- and client-side.", | ||
@@ -21,12 +21,12 @@ "keywords": [ | ||
"@rkusa/linebreak": "^1.0.0", | ||
"opentype.js": "^1.1.0", | ||
"pako": "^1.0.10", | ||
"readable-stream": "^3.5.0", | ||
"opentype.js": "^1.3.3", | ||
"pako": "^1.0.11", | ||
"readable-stream": "^3.6.0", | ||
"unorm": "^1.6.0", | ||
"uuid": "^3.4.0" | ||
"uuid": "^7.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^13.5.0", | ||
"tape": "^4.13.0", | ||
"typescript": "^3.7.5" | ||
"@types/node": "^13.13.4", | ||
"tape": "^5.0.0", | ||
"typescript": "^3.8.3" | ||
}, | ||
@@ -33,0 +33,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
339375
6551
+ Addeduuid@7.0.3(transitive)
- Removeduuid@3.4.0(transitive)
Updatedopentype.js@^1.3.3
Updatedpako@^1.0.11
Updatedreadable-stream@^3.6.0
Updateduuid@^7.0.3