From 244ea2dbd4fc693522e9b2de872a032465981baf Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 13 Jan 2015 09:38:34 +0100 Subject: [PATCH] Attempt to display the File size quicker in the Document Properties dialog (PR 5554 followup) --- web/viewer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/viewer.js b/web/viewer.js index f83f3212d6b2b5..806c9f065434c0 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);