Merge pull request #6953 from Snuffleupagus/smask-transferMap-upper-limit
Correct the upper bound used when building the `transferMap` for SMasks (PR 6723 followup)
This commit is contained in:
commit
974433a7a7
@ -362,7 +362,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
var transferFn = PDFFunction.parse(this.xref, transferObj);
|
var transferFn = PDFFunction.parse(this.xref, transferObj);
|
||||||
var transferMap = new Uint8Array(256);
|
var transferMap = new Uint8Array(256);
|
||||||
var tmp = new Float32Array(1);
|
var tmp = new Float32Array(1);
|
||||||
for (var i = 0; i < 255; i++) {
|
for (var i = 0; i < 256; i++) {
|
||||||
tmp[0] = i / 255;
|
tmp[0] = i / 255;
|
||||||
transferFn(tmp, 0, tmp, 0);
|
transferFn(tmp, 0, tmp, 0);
|
||||||
transferMap[i] = (tmp[0] * 255) | 0;
|
transferMap[i] = (tmp[0] * 255) | 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user