From a190d21dd730b88a2fe9b00eac8727212e1be248 Mon Sep 17 00:00:00 2001 From: pedrotp Date: Sat, 19 May 2018 15:21:01 -0500 Subject: [PATCH] Use Dict.getArray, instead of Dict.get, when getting the 'Size' in constructSampled in src/core/function.js (PR 7295 follow-up) --- src/core/function.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/function.js b/src/core/function.js index 7ab87d06f7c00..0f0d59718c4d9 100644 --- a/src/core/function.js +++ b/src/core/function.js @@ -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) {