Skip to content

Commit 5e3882a

Browse files
committed
Changing cubic spline interpolation error to TODO
1 parent e17d828 commit 5e3882a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/function.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@ var PDFFunction = (function PDFFunctionClosure() {
103103

104104
var size = dict.get('Size');
105105
var bps = dict.get('BitsPerSample');
106-
var order = dict.get('Order');
107-
if (!order)
108-
order = 1;
109-
if (order !== 1)
110-
error('No support for cubic spline interpolation: ' + order);
106+
var order = dict.get('Order') || 1;
107+
if (order !== 1) {
108+
// No description how cubic spline interpolation works in PDF32000:2008
109+
// As in poppler, ignoring order, linear interpolation may work as good
110+
TODO('No support for cubic spline interpolation: ' + order);
111+
}
111112

112113
var encode = dict.get('Encode');
113114
if (!encode) {

0 commit comments

Comments
 (0)