@ -12702,10 +12715,13 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -12702,10 +12715,13 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -12713,17 +12729,17 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -12713,17 +12729,17 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -12920,8 +12936,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@@ -12920,8 +12936,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
varversion,build;
{
exports.version=version='2.0.276';
exports.build=build='96c573ad';
exports.version=version='2.0.279';
exports.build=build='75dc2bbd';
}
exports.getDocument=getDocument;
exports.LoopbackPort=LoopbackPort;
@ -12949,7 +12965,7 @@ var _createClass = function () { function defineProperties(target, props) { for
@@ -12949,7 +12965,7 @@ var _createClass = function () { function defineProperties(target, props) { for
var_util=__w_pdfjs_require__(0);
var_dom_utils=__w_pdfjs_require__(12);
var_dom_utils=__w_pdfjs_require__(10);
function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function");}}
@ -24105,7 +24121,7 @@ var _get = function get(object, property, receiver) { if (object === null) objec
@@ -24105,7 +24121,7 @@ var _get = function get(object, property, receiver) { if (object === null) objec
@ -31916,8 +31932,8 @@ if (!_global_scope2.default.PDFJS) {
@@ -31916,8 +31932,8 @@ if (!_global_scope2.default.PDFJS) {
}
varPDFJS=_global_scope2.default.PDFJS;
{
PDFJS.version='2.0.276';
PDFJS.build='96c573ad';
PDFJS.version='2.0.279';
PDFJS.build='75dc2bbd';
}
PDFJS.pdfBug=false;
if(PDFJS.verbosity!==undefined){
@ -34528,6 +34544,7 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
@@ -34528,6 +34544,7 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
@ -34552,6 +34569,9 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
@@ -34552,6 +34569,9 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
getheadersReady(){
returnthis._headersReady;
},
getfilename(){
returnthis._filename;
},
getisRangeSupported(){
returnthis._stream._isRangeSupported;
},
@ -35284,7 +35304,7 @@ var WorkerMessageHandler = {
@@ -35284,7 +35304,7 @@ var WorkerMessageHandler = {
thrownewError('The API version "'+apiVersion+'" does not match '+('the Worker version "'+workerVersion+'".'));
}
@ -52565,6 +52585,7 @@ var BaseFullReader = function () {
@@ -52565,6 +52585,7 @@ var BaseFullReader = function () {
varsource=stream.source;
this._contentLength=source.length;
this._loaded=0;
this._filename=null;
this._disableRange=source.disableRange||false;
this._rangeChunkSize=source.rangeChunkSize;
if(!this._rangeChunkSize&&!this._disableRange){
@ -52656,6 +52677,11 @@ var BaseFullReader = function () {
@@ -52656,6 +52677,11 @@ var BaseFullReader = function () {
get:functionget(){
returnthis._headersCapability.promise;
}
},{
key:'filename',
get:functionget(){
returnthis._filename;
}
},{
key:'contentLength',
get:functionget(){
@ -52793,11 +52819,12 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@@ -52793,11 +52819,12 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@ -52809,6 +52836,7 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@@ -52809,6 +52836,7 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@ -4463,10 +4476,13 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -4463,10 +4476,13 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -4474,17 +4490,17 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -4474,17 +4490,17 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -4681,8 +4697,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@@ -4681,8 +4697,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
varversion,build;
{
exports.version=version='2.0.276';
exports.build=build='96c573ad';
exports.version=version='2.0.279';
exports.build=build='75dc2bbd';
}
exports.getDocument=getDocument;
exports.LoopbackPort=LoopbackPort;
@ -4710,7 +4726,7 @@ var _createClass = function () { function defineProperties(target, props) { for
@@ -4710,7 +4726,7 @@ var _createClass = function () { function defineProperties(target, props) { for
var_util=__w_pdfjs_require__(0);
var_dom_utils=__w_pdfjs_require__(10);
var_dom_utils=__w_pdfjs_require__(8);
function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function");}}
@ -4826,7 +4842,7 @@ var _get = function get(object, property, receiver) { if (object === null) objec
@@ -4826,7 +4842,7 @@ var _get = function get(object, property, receiver) { if (object === null) objec
@ -12638,8 +12654,8 @@ if (!_global_scope2.default.PDFJS) {
@@ -12638,8 +12654,8 @@ if (!_global_scope2.default.PDFJS) {
}
varPDFJS=_global_scope2.default.PDFJS;
{
PDFJS.version='2.0.276';
PDFJS.build='96c573ad';
PDFJS.version='2.0.279';
PDFJS.build='75dc2bbd';
}
PDFJS.pdfBug=false;
if(PDFJS.verbosity!==undefined){
@ -15250,6 +15266,7 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
@@ -15250,6 +15266,7 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
@ -15274,6 +15291,9 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
@@ -15274,6 +15291,9 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
getheadersReady(){
returnthis._headersReady;
},
getfilename(){
returnthis._filename;
},
getisRangeSupported(){
returnthis._stream._isRangeSupported;
},
@ -15883,6 +15903,7 @@ var BaseFullReader = function () {
@@ -15883,6 +15903,7 @@ var BaseFullReader = function () {
varsource=stream.source;
this._contentLength=source.length;
this._loaded=0;
this._filename=null;
this._disableRange=source.disableRange||false;
this._rangeChunkSize=source.rangeChunkSize;
if(!this._rangeChunkSize&&!this._disableRange){
@ -15974,6 +15995,11 @@ var BaseFullReader = function () {
@@ -15974,6 +15995,11 @@ var BaseFullReader = function () {
get:functionget(){
returnthis._headersCapability.promise;
}
},{
key:'filename',
get:functionget(){
returnthis._filename;
}
},{
key:'contentLength',
get:functionget(){
@ -16111,11 +16137,12 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@@ -16111,11 +16137,12 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@ -16127,6 +16154,7 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@@ -16127,6 +16154,7 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@ -1333,10 +1333,13 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -1333,10 +1333,13 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -1344,17 +1347,17 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -1344,17 +1347,17 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -1551,8 +1554,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@@ -1551,8 +1554,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@ -100,6 +100,7 @@ var BaseFullReader = function () {
@@ -100,6 +100,7 @@ var BaseFullReader = function () {
varsource=stream.source;
this._contentLength=source.length;
this._loaded=0;
this._filename=null;
this._disableRange=source.disableRange||false;
this._rangeChunkSize=source.rangeChunkSize;
if(!this._rangeChunkSize&&!this._disableRange){
@ -191,6 +192,11 @@ var BaseFullReader = function () {
@@ -191,6 +192,11 @@ var BaseFullReader = function () {
get:functionget(){
returnthis._headersCapability.promise;
}
},{
key:'filename',
get:functionget(){
returnthis._filename;
}
},{
key:'contentLength',
get:functionget(){
@ -328,11 +334,12 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@@ -328,11 +334,12 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@ -344,6 +351,7 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@@ -344,6 +351,7 @@ var PDFNodeStreamFullReader = function (_BaseFullReader) {
@ -119,6 +119,7 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
@@ -119,6 +119,7 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
@ -143,6 +144,9 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
@@ -143,6 +144,9 @@ var PDFDataTransportStream = function PDFDataTransportStreamClosure() {
it('handles missing PDF file responses',function(){
expect((0,_network_utils.createResponseStatusError)(404,'https://foo.com/bar.pdf')).toEqual(new_util.MissingPDFException('Missing PDF "https://foo.com/bar.pdf".'));