Changing cubic spline interpolation error to TODO

This commit is contained in:
Yury Delendik 2012-08-10 08:30:20 -05:00
parent e17d828b64
commit 5e3882ab69

View File

@ -103,11 +103,12 @@ var PDFFunction = (function PDFFunctionClosure() {
var size = dict.get('Size');
var bps = dict.get('BitsPerSample');
var order = dict.get('Order');
if (!order)
order = 1;
if (order !== 1)
error('No support for cubic spline interpolation: ' + order);
var order = dict.get('Order') || 1;
if (order !== 1) {
// No description how cubic spline interpolation works in PDF32000:2008
// As in poppler, ignoring order, linear interpolation may work as good
TODO('No support for cubic spline interpolation: ' + order);
}
var encode = dict.get('Encode');
if (!encode) {