@ -11641,7 +11641,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
@@ -11641,7 +11641,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if ( worker . destroyed ) {
return Promise . reject ( new Error ( 'Worker was destroyed' ) ) ;
}
var apiVersion = '2.0.283 ' ;
var apiVersion = '2.0.285 ' ;
source . disableRange = ( 0 , _dom _utils . getDefaultSetting ) ( 'disableRange' ) ;
source . disableAutoFetch = ( 0 , _dom _utils . getDefaultSetting ) ( 'disableAutoFetch' ) ;
source . disableStream = ( 0 , _dom _utils . getDefaultSetting ) ( 'disableStream' ) ;
@ -12936,8 +12936,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@@ -12936,8 +12936,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
} ( ) ;
var version , build ;
{
exports . version = version = '2.0.283 ' ;
exports . build = build = 'fe5102a2 ' ;
exports . version = version = '2.0.285 ' ;
exports . build = build = '97466465 ' ;
}
exports . getDocument = getDocument ;
exports . LoopbackPort = LoopbackPort ;
@ -26734,8 +26734,8 @@ exports.SVGGraphics = SVGGraphics;
@@ -26734,8 +26734,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict" ;
var pdfjsVersion = '2.0.283 ' ;
var pdfjsBuild = 'fe5102a2 ' ;
var pdfjsVersion = '2.0.285 ' ;
var pdfjsBuild = '97466465 ' ;
var pdfjsSharedUtil = _ _w _pdfjs _require _ _ ( 0 ) ;
var pdfjsDisplayGlobal = _ _w _pdfjs _require _ _ ( 132 ) ;
var pdfjsDisplayAPI = _ _w _pdfjs _require _ _ ( 66 ) ;
@ -31938,8 +31938,8 @@ if (!_global_scope2.default.PDFJS) {
@@ -31938,8 +31938,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global _scope2 . default . PDFJS ;
{
PDFJS . version = '2.0.283 ' ;
PDFJS . build = 'fe5102a2 ' ;
PDFJS . version = '2.0.285 ' ;
PDFJS . build = '97466465 ' ;
}
PDFJS . pdfBug = false ;
if ( PDFJS . verbosity !== undefined ) {
@ -35310,7 +35310,7 @@ var WorkerMessageHandler = {
@@ -35310,7 +35310,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null ;
var WorkerTasks = [ ] ;
var apiVersion = docParams . apiVersion ;
var workerVersion = '2.0.283 ' ;
var workerVersion = '2.0.285 ' ;
if ( apiVersion !== null && apiVersion !== workerVersion ) {
throw new Error ( 'The API version "' + apiVersion + '" does not match ' + ( 'the Worker version "' + workerVersion + '".' ) ) ;
}
@ -38212,22 +38212,6 @@ var Jbig2Image = function Jbig2ImageClosure() {
@@ -38212,22 +38212,6 @@ var Jbig2Image = function Jbig2ImageClosure() {
processSegment ( segments [ i ] , visitor ) ;
}
}
function parseJbig2 ( data , start , end ) {
var position = start ;
if ( data [ position ] !== 0x97 || data [ position + 1 ] !== 0x4A || data [ position + 2 ] !== 0x42 || data [ position + 3 ] !== 0x32 || data [ position + 4 ] !== 0x0D || data [ position + 5 ] !== 0x0A || data [ position + 6 ] !== 0x1A || data [ position + 7 ] !== 0x0A ) {
throw new Jbig2Error ( 'invalid header' ) ;
}
var header = { } ;
position += 8 ;
var flags = data [ position ++ ] ;
header . randomAccess = ! ( flags & 1 ) ;
if ( ! ( flags & 2 ) ) {
header . numberOfPages = ( 0 , _util . readUint32 ) ( data , position ) ;
position += 4 ;
}
readSegments ( header , data , position , end ) ;
throw new Error ( 'Not implemented' ) ;
}
function parseJbig2Chunks ( chunks ) {
var visitor = new SimpleSegmentVisitor ( ) ;
for ( var i = 0 , ii = chunks . length ; i < ii ; i ++ ) {