Merge pull request #9740 from pedrotp/replace-get-getArray

Use Dict.getArray, instead of Dict.get, when getting the 'Size' in constructSampled in src/core/function.js
This commit is contained in:
Tim van der Meij 2018-06-02 19:50:09 +02:00 committed by GitHub
commit 36af85db92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,7 @@ var PDFFunction = (function PDFFunctionClosure() {
domain = toMultiArray(domain);
range = toMultiArray(range);
var size = toNumberArray(dict.get('Size'));
var size = toNumberArray(dict.getArray('Size'));
var bps = dict.get('BitsPerSample');
var order = dict.get('Order') || 1;
if (order !== 1) {