diff --git a/web/viewer.js b/web/viewer.js index f83f3212d6b2b..806c9f065434c 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -403,6 +403,10 @@ var PDFViewerApplication = { PDFViewerApplication.open(args.pdfUrl, 0, undefined, pdfDataRangeTransport); + + if (args.length) { + DocumentProperties.setFileSize(args.length); + } break; case 'range': pdfDataRangeTransport.onDataRange(args.begin, args.chunk);