TagSpaces is an offline, open source, document manager with tagging support
updating the PDF.js lib
uggrockb64a1fecc3c4
diff --git a/data/libs/pdfjs/LICENSE[apache2].txt b/data/libs/pdfjs/LICENSE[apache2].txtdeleted file mode 100644index e454a5258..000000000--- a/data/libs/pdfjs/LICENSE[apache2].txt+++ /dev/null@@ -1,178 +0,0 @@-- Apache License- Version 2.0, January 2004- http://www.apache.org/licenses/-- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION-- 1. Definitions.-- "License" shall mean the terms and conditions for use, reproduction,- and distribution as defined by Sections 1 through 9 of this document.-- "Licensor" shall mean the copyright owner or entity authorized by- the copyright owner that is granting the License.-- "Legal Entity" shall mean the union of the acting entity and all- other entities that control, are controlled by, or are under common- control with that entity. For the purposes of this definition,- "control" means (i) the power, direct or indirect, to cause the- direction or management of such entity, whether by contract or- otherwise, or (ii) ownership of fifty percent (50%) or more of the- outstanding shares, or (iii) beneficial ownership of such entity.-- "You" (or "Your") shall mean an individual or Legal Entity- exercising permissions granted by this License.-- "Source" form shall mean the preferred form for making modifications,- including but not limited to software source code, documentation- source, and configuration files.-- "Object" form shall mean any form resulting from mechanical- transformation or translation of a Source form, including but- not limited to compiled object code, generated documentation,- and conversions to other media types.-- "Work" shall mean the work of authorship, whether in Source or- Object form, made available under the License, as indicated by a- copyright notice that is included in or attached to the work- (an example is provided in the Appendix below).-- "Derivative Works" shall mean any work, whether in Source or Object- form, that is based on (or derived from) the Work and for which the- editorial revisions, annotations, elaborations, or other modifications- represent, as a whole, an original work of authorship. For the purposes- of this License, Derivative Works shall not include works that remain- separable from, or merely link (or bind by name) to the interfaces of,- the Work and Derivative Works thereof.-- "Contribution" shall mean any work of authorship, including- the original version of the Work and any modifications or additions- to that Work or Derivative Works thereof, that is intentionally- submitted to Licensor for inclusion in the Work by the copyright owner- or by an individual or Legal Entity authorized to submit on behalf of- the copyright owner. For the purposes of this definition, "submitted"- means any form of electronic, verbal, or written communication sent- to the Licensor or its representatives, including but not limited to- communication on electronic mailing lists, source code control systems,- and issue tracking systems that are managed by, or on behalf of, the- Licensor for the purpose of discussing and improving the Work, but- excluding communication that is conspicuously marked or otherwise- designated in writing by the copyright owner as "Not a Contribution."-- "Contributor" shall mean Licensor and any individual or Legal Entity- on behalf of whom a Contribution has been received by Licensor and- subsequently incorporated within the Work.-- 2. Grant of Copyright License. Subject to the terms and conditions of- this License, each Contributor hereby grants to You a perpetual,- worldwide, non-exclusive, no-charge, royalty-free, irrevocable- copyright license to reproduce, prepare Derivative Works of,- publicly display, publicly perform, sublicense, and distribute the- Work and such Derivative Works in Source or Object form.-- 3. Grant of Patent License. Subject to the terms and conditions of- this License, each Contributor hereby grants to You a perpetual,- worldwide, non-exclusive, no-charge, royalty-free, irrevocable- (except as stated in this section) patent license to make, have made,- use, offer to sell, sell, import, and otherwise transfer the Work,- where such license applies only to those patent claims licensable- by such Contributor that are necessarily infringed by their- Contribution(s) alone or by combination of their Contribution(s)- with the Work to which such Contribution(s) was submitted. If You- institute patent litigation against any entity (including a- cross-claim or counterclaim in a lawsuit) alleging that the Work- or a Contribution incorporated within the Work constitutes direct- or contributory patent infringement, then any patent licenses- granted to You under this License for that Work shall terminate- as of the date such litigation is filed.-- 4. Redistribution. You may reproduce and distribute copies of the- Work or Derivative Works thereof in any medium, with or without- modifications, and in Source or Object form, provided that You- meet the following conditions:-- (a) You must give any other recipients of the Work or- Derivative Works a copy of this License; and-- (b) You must cause any modified files to carry prominent notices- stating that You changed the files; and-- (c) You must retain, in the Source form of any Derivative Works- that You distribute, all copyright, patent, trademark, and- attribution notices from the Source form of the Work,- excluding those notices that do not pertain to any part of- the Derivative Works; and-- (d) If the Work includes a "NOTICE" text file as part of its- distribution, then any Derivative Works that You distribute must- include a readable copy of the attribution notices contained- within such NOTICE file, excluding those notices that do not- pertain to any part of the Derivative Works, in at least one- of the following places: within a NOTICE text file distributed- as part of the Derivative Works; within the Source form or- documentation, if provided along with the Derivative Works; or,- within a display generated by the Derivative Works, if and- wherever such third-party notices normally appear. The contents- of the NOTICE file are for informational purposes only and- do not modify the License. You may add Your own attribution- notices within Derivative Works that You distribute, alongside- or as an addendum to the NOTICE text from the Work, provided- that such additional attribution notices cannot be construed- as modifying the License.-- You may add Your own copyright statement to Your modifications and- may provide additional or different license terms and conditions- for use, reproduction, or distribution of Your modifications, or- for any such Derivative Works as a whole, provided Your use,- reproduction, and distribution of the Work otherwise complies with- the conditions stated in this License.-- 5. Submission of Contributions. Unless You explicitly state otherwise,- any Contribution intentionally submitted for inclusion in the Work- by You to the Licensor shall be under the terms and conditions of- this License, without any additional terms or conditions.- Notwithstanding the above, nothing herein shall supersede or modify- the terms of any separate license agreement you may have executed- with Licensor regarding such Contributions.-- 6. Trademarks. This License does not grant permission to use the trade- names, trademarks, service marks, or product names of the Licensor,- except as required for reasonable and customary use in describing the- origin of the Work and reproducing the content of the NOTICE file.-- 7. Disclaimer of Warranty. Unless required by applicable law or- agreed to in writing, Licensor provides the Work (and each- Contributor provides its Contributions) on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or- implied, including, without limitation, any warranties or conditions- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A- PARTICULAR PURPOSE. You are solely responsible for determining the- appropriateness of using or redistributing the Work and assume any- risks associated with Your exercise of permissions under this License.-- 8. Limitation of Liability. In no event and under no legal theory,- whether in tort (including negligence), contract, or otherwise,- unless required by applicable law (such as deliberate and grossly- negligent acts) or agreed to in writing, shall any Contributor be- liable to You for damages, including any direct, indirect, special,- incidental, or consequential damages of any character arising as a- result of this License or out of the use or inability to use the- Work (including but not limited to damages for loss of goodwill,- work stoppage, computer failure or malfunction, or any and all- other commercial damages or losses), even if such Contributor- has been advised of the possibility of such damages.-- 9. Accepting Warranty or Additional Liability. While redistributing- the Work or Derivative Works thereof, You may choose to offer,- and charge a fee for, acceptance of support, warranty, indemnity,- or other liability obligations and/or rights consistent with this- License. However, in accepting such obligations, You may act only- on Your own behalf and on Your sole responsibility, not on behalf- of any other Contributor, and only if You agree to indemnify,- defend, and hold each Contributor harmless for any liability- incurred by, or claims asserted against, such Contributor by reason- of your accepting any such warranty or additional liability.-- END OF TERMS AND CONDITIONS-diff --git a/data/libs/pdfjs/build/pdf.js b/data/libs/pdfjs/build/pdf.jsindex e353b5ef1..33c911a7e 100644--- a/data/libs/pdfjs/build/pdf.js+++ b/data/libs/pdfjs/build/pdf.js@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {(typeof window !== 'undefined' ? window : this).PDFJS = {};}-PDFJS.version = '1.1.366';-PDFJS.build = '9e9df56';+PDFJS.version = '1.2.109';+PDFJS.build = '875588d';(function pdfjsWrapper() {// Use strict in our context only - users might not want it@@ -225,6 +225,11 @@ function warn(msg) {}}+// Deprecated API function -- treated as warnings.+function deprecated(details) {+ warn('Deprecated API usage: ' + details);+}+// Fatal errors that should trigger the fallback UI and halt execution by// throwing an exception.function error(msg) {@@ -340,6 +345,47 @@ function shadow(obj, prop, value) {}PDFJS.shadow = shadow;+var LinkTarget = PDFJS.LinkTarget = {+ NONE: 0, // Default value.+ SELF: 1,+ BLANK: 2,+ PARENT: 3,+ TOP: 4,+};+var LinkTargetStringMap = [+ '',+ '_self',+ '_blank',+ '_parent',+ '_top'+];++function isExternalLinkTargetSet() {+ if (PDFJS.openExternalLinksInNewWindow) {+ warn('PDFJS.openExternalLinksInNewWindow is deprecated, ' ++ 'use PDFJS.externalLinkTarget instead.');+ if (PDFJS.externalLinkTarget === LinkTarget.NONE) {+ PDFJS.externalLinkTarget = LinkTarget.BLANK;+ }+ // Reset the deprecated parameter, to suppress further warnings.+ PDFJS.openExternalLinksInNewWindow = false;+ }+ switch (PDFJS.externalLinkTarget) {+ case LinkTarget.NONE:+ return false;+ case LinkTarget.SELF:+ case LinkTarget.BLANK:+ case LinkTarget.PARENT:+ case LinkTarget.TOP:+ return true;+ }+ warn('PDFJS.externalLinkTarget is invalid: ' + PDFJS.externalLinkTarget);+ // Reset the external link target, to suppress further warnings.+ PDFJS.externalLinkTarget = LinkTarget.NONE;+ return false;+}+PDFJS.isExternalLinkTargetSet = isExternalLinkTargetSet;+var PasswordResponses = PDFJS.PasswordResponses = {NEED_PASSWORD: 1,INCORRECT_PASSWORD: 2@@ -1508,6 +1554,10 @@ function MessageHandler(name, comObj) {data: result});}, function (reason) {+ if (reason instanceof Error) {+ // Serialize error to avoid "DataCloneError"+ reason = reason + '';+ }comObj.postMessage({isReply: true,callbackId: data.callbackId,@@ -1597,6 +1647,8 @@ function loadJpegStream(id, imageUrl, objs) {}+var DEFAULT_RANGE_CHUNK_SIZE = 65536; // 2^16 = 65536+/*** The maximum allowed image size in total pixels e.g. width * height. Images* above this value will not be drawn. Use -1 for no limit.@@ -1647,7 +1699,9 @@ PDFJS.disableWorker = (PDFJS.disableWorker === undefined ?/*** Path and filename of the worker file. Required when the worker is enabled in* development mode. If unspecified in the production build, the worker will be- * loaded based on the location of the pdf.js file.+ * loaded based on the location of the pdf.js file. It is recommended that+ * the workerSrc is set in a custom application to prevent issues caused by+ * third-party frameworks and libraries.* @var {string}*/PDFJS.workerSrc = (PDFJS.workerSrc === undefined ? null : PDFJS.workerSrc);@@ -1743,14 +1797,35 @@ PDFJS.maxCanvasPixels = (PDFJS.maxCanvasPixels === undefined ?16777216 : PDFJS.maxCanvasPixels);/**- * Opens external links in a new window if enabled. The default behavior opens- * external links in the PDF.js window.+ * (Deprecated) Opens external links in a new window if enabled.+ * The default behavior opens external links in the PDF.js window.* @var {boolean}*/PDFJS.openExternalLinksInNewWindow = (PDFJS.openExternalLinksInNewWindow === undefined ?false : PDFJS.openExternalLinksInNewWindow);+/**+ * Specifies the |target| attribute for external links.+ * The constants from PDFJS.LinkTarget should be used:+ * - NONE [default]+ * - SELF+ * - BLANK+ * - PARENT+ * - TOP+ * @var {number}+ */+PDFJS.externalLinkTarget = (PDFJS.externalLinkTarget === undefined ?+ PDFJS.LinkTarget.NONE : PDFJS.externalLinkTarget);++/**+ * Determines if we can eval strings as JS. Primarily used to improve+ * performance for font rendering.+ * @var {boolean}+ */+PDFJS.isEvalSupported = (PDFJS.isEvalSupported === undefined ?+ true : PDFJS.isEvalSupported);+/*** Document initialization / loading parameters object.*@@ -1770,6 +1845,9 @@ PDFJS.openExternalLinksInNewWindow = (* @property {number} length - The PDF file length. It's used for progress* reports and range requests operations.* @property {PDFDataRangeTransport} range+ * @property {number} rangeChunkSize - Optional parameter to specify+ * maximum number of bytes fetched per range request. The default value is+ * 2^16 = 65536.*//**@@ -1812,12 +1890,19 @@ PDFJS.getDocument = function getDocument(src,var task = new PDFDocumentLoadingTask();// Support of the obsolete arguments (for compatibility with API v1.0)+ if (arguments.length > 1) {+ deprecated('getDocument is called with pdfDataRangeTransport, ' ++ 'passwordCallback or progressCallback argument');+ }if (pdfDataRangeTransport) {if (!(pdfDataRangeTransport instanceof PDFDataRangeTransport)) {// Not a PDFDataRangeTransport instance, trying to add missing properties.pdfDataRangeTransport = Object.create(pdfDataRangeTransport);pdfDataRangeTransport.length = src.length;pdfDataRangeTransport.initialData = src.initialData;+ if (!pdfDataRangeTransport.abort) {+ pdfDataRangeTransport.abort = function () {};+ }}src = Object.create(src);src.range = pdfDataRangeTransport;@@ -1861,6 +1946,8 @@ PDFJS.getDocument = function getDocument(src,} else if (typeof pdfBytes === 'object' && pdfBytes !== null &&!isNaN(pdfBytes.length)) {params[key] = new Uint8Array(pdfBytes);+ } else if (isArrayBuffer(pdfBytes)) {+ params[key] = new Uint8Array(pdfBytes);} else {error('Invalid PDF binary data: either typed array, string or ' +'array-like object is expected in the data property.');@@ -1870,11 +1957,14 @@ PDFJS.getDocument = function getDocument(src,params[key] = source[key];}+ params.rangeChunkSize = source.rangeChunkSize || DEFAULT_RANGE_CHUNK_SIZE;+workerInitializedCapability = createPromiseCapability();transport = new WorkerTransport(workerInitializedCapability, source.range);workerInitializedCapability.promise.then(function transportInitialized() {transport.fetchDocument(task, params);});+ task._transport = transport;return task;};@@ -1882,11 +1972,12 @@ PDFJS.getDocument = function getDocument(src,/*** PDF document loading operation.* @class+ * @alias PDFDocumentLoadingTask*/var PDFDocumentLoadingTask = (function PDFDocumentLoadingTaskClosure() {- /** @constructs PDFDocumentLoadingTask */function PDFDocumentLoadingTask() {this._capability = createPromiseCapability();+ this._transport = null;/*** Callback to request a password if wrong or no password was provided.@@ -1912,7 +2003,14 @@ var PDFDocumentLoadingTask = (function PDFDocumentLoadingTaskClosure() {return this._capability.promise;},- // TODO add cancel or abort method+ /**+ * Aborts all network requests and destroys worker.+ * @return {Promise} A promise that is resolved after destruction activity+ * is completed.+ */+ destroy: function () {+ return this._transport.destroy();+ },/*** Registers callbacks to indicate the document loading completion.@@ -1933,13 +2031,11 @@ var PDFDocumentLoadingTask = (function PDFDocumentLoadingTaskClosure() {/*** Abstract class to support range requests file loading.* @class+ * @alias PDFJS.PDFDataRangeTransport+ * @param {number} length+ * @param {Uint8Array} initialData*/var PDFDataRangeTransport = (function pdfDataRangeTransportClosure() {- /**- * @constructs PDFDataRangeTransport- * @param {number} length- * @param {Uint8Array} initialData- */function PDFDataRangeTransport(length, initialData) {this.length = length;this.initialData = initialData;@@ -1999,6 +2095,9 @@ var PDFDataRangeTransport = (function pdfDataRangeTransportClosure() {requestDataRange:function PDFDataRangeTransport_requestDataRange(begin, end) {throw new Error('Abstract method PDFDataRangeTransport.requestDataRange');+ },++ abort: function PDFDataRangeTransport_abort() {}};return PDFDataRangeTransport;@@ -2010,11 +2109,13 @@ PDFJS.PDFDataRangeTransport = PDFDataRangeTransport;* Proxy to a PDFDocument in the worker thread. Also, contains commonly used* properties that can be read synchronously.* @class+ * @alias PDFDocumentProxy*/var PDFDocumentProxy = (function PDFDocumentProxyClosure() {- function PDFDocumentProxy(pdfInfo, transport) {+ function PDFDocumentProxy(pdfInfo, transport, loadingTask) {this.pdfInfo = pdfInfo;this.transport = transport;+ this.loadingTask = loadingTask;}PDFDocumentProxy.prototype = /** @lends PDFDocumentProxy.prototype */ {/**@@ -2137,7 +2238,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {* Destroys current document instance and terminates worker.*/destroy: function PDFDocumentProxy_destroy() {- this.transport.destroy();+ return this.transport.destroy();}};return PDFDocumentProxy;@@ -2203,6 +2304,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {/*** Proxy to a PDFPage in the worker thread.* @class+ * @alias PDFPageProxy*/var PDFPageProxy = (function PDFPageProxyClosure() {function PDFPageProxy(pageIndex, pageInfo, transport) {@@ -2214,8 +2316,9 @@ var PDFPageProxy = (function PDFPageProxyClosure() {this.commonObjs = transport.commonObjs;this.objs = new PDFObjects();this.cleanupAfterRender = false;- this.pendingDestroy = false;+ this.pendingCleanup = false;this.intentStates = {};+ this.destroyed = false;}PDFPageProxy.prototype = /** @lends PDFPageProxy.prototype */ {/**@@ -2279,7 +2382,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {// If there was a pending destroy cancel it so no cleanup happens during// this call to render.- this.pendingDestroy = false;+ this.pendingCleanup = false;var renderingIntent = (params.intent === 'print' ? 'print' : 'display');@@ -2320,13 +2423,14 @@ var PDFPageProxy = (function PDFPageProxyClosure() {// Obsolete parameter supportif (params.continueCallback) {+ deprecated('render is used with continueCallback parameter');renderTask.onContinue = params.continueCallback;}var self = this;intentState.displayReadyCapability.promise.then(function pageDisplayReadyPromise(transparency) {- if (self.pendingDestroy) {+ if (self.pendingCleanup) {complete();return;}@@ -2346,9 +2450,9 @@ var PDFPageProxy = (function PDFPageProxyClosure() {}if (self.cleanupAfterRender) {- self.pendingDestroy = true;+ self.pendingCleanup = true;}- self._tryDestroy();+ self._tryCleanup();if (error) {internalRenderTask.capability.reject(error);@@ -2409,20 +2513,52 @@ var PDFPageProxy = (function PDFPageProxyClosure() {pageIndex: this.pageNumber - 1});},++ /**+ * Destroys page object.+ */+ _destroy: function PDFPageProxy_destroy() {+ this.destroyed = true;+ this.transport.pageCache[this.pageIndex] = null;++ var waitOn = [];+ Object.keys(this.intentStates).forEach(function(intent) {+ var intentState = this.intentStates[intent];+ intentState.renderTasks.forEach(function(renderTask) {+ var renderCompleted = renderTask.capability.promise.+ catch(function () {}); // ignoring failures+ waitOn.push(renderCompleted);+ renderTask.cancel();+ });+ }, this);+ this.objs.clear();+ this.annotationsPromise = null;+ this.pendingCleanup = false;+ return Promise.all(waitOn);+ },+/**- * Destroys resources allocated by the page.+ * Cleans up resources allocated by the page. (deprecated)*/- destroy: function PDFPageProxy_destroy() {- this.pendingDestroy = true;- this._tryDestroy();+ destroy: function() {+ deprecated('page destroy method, use cleanup() instead');+ this.cleanup();+ },++ /**+ * Cleans up resources allocated by the page.+ */+ cleanup: function PDFPageProxy_cleanup() {+ this.pendingCleanup = true;+ this._tryCleanup();},/*** For internal use only. Attempts to clean up if rendering is in a state* where that's possible.* @ignore*/- _tryDestroy: function PDFPageProxy__destroy() {- if (!this.pendingDestroy ||+ _tryCleanup: function PDFPageProxy_tryCleanup() {+ if (!this.pendingCleanup ||Object.keys(this.intentStates).some(function(intent) {var intentState = this.intentStates[intent];return (intentState.renderTasks.length !== 0 ||@@ -2436,7 +2572,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {}, this);this.objs.clear();this.annotationsPromise = null;- this.pendingDestroy = false;+ this.pendingCleanup = false;},/*** For internal use only.@@ -2474,7 +2610,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {if (operatorListChunk.lastChunk) {intentState.receivingOperatorList = false;- this._tryDestroy();+ this._tryCleanup();}}};@@ -2492,6 +2628,8 @@ var WorkerTransport = (function WorkerTransportClosure() {this.commonObjs = new PDFObjects();this.loadingTask = null;+ this.destroyed = false;+ this.destroyCapability = null;this.pageCache = [];this.pagePromises = [];@@ -2550,15 +2688,40 @@ var WorkerTransport = (function WorkerTransportClosure() {}WorkerTransport.prototype = {destroy: function WorkerTransport_destroy() {+ if (this.destroyCapability) {+ return this.destroyCapability.promise;+ }++ this.destroyed = true;+ this.destroyCapability = createPromiseCapability();++ var waitOn = [];+ // We need to wait for all renderings to be completed, e.g.+ // timeout/rAF can take a long time.+ this.pageCache.forEach(function (page) {+ if (page) {+ waitOn.push(page._destroy());+ }+ });this.pageCache = [];this.pagePromises = [];var self = this;- this.messageHandler.sendWithPromise('Terminate', null).then(function () {+ // We also need to wait for the worker to finish its long running tasks.+ var terminated = this.messageHandler.sendWithPromise('Terminate', null);+ waitOn.push(terminated);+ Promise.all(waitOn).then(function () {FontLoader.clear();if (self.worker) {self.worker.terminate();}- });+ if (self.pdfDataRangeTransport) {+ self.pdfDataRangeTransport.abort();+ self.pdfDataRangeTransport = null;+ }+ self.messageHandler = null;+ self.destroyCapability.resolve();+ }, this.destroyCapability.reject);+ return this.destroyCapability.promise;},setupFakeWorker: function WorkerTransport_setupFakeWorker() {@@ -2632,9 +2795,10 @@ var WorkerTransport = (function WorkerTransportClosure() {messageHandler.on('GetDoc', function transportDoc(data) {var pdfInfo = data.pdfInfo;this.numPages = data.pdfInfo.numPages;- var pdfDocument = new PDFDocumentProxy(pdfInfo, this);+ var loadingTask = this.loadingTask;+ var pdfDocument = new PDFDocumentProxy(pdfInfo, this, loadingTask);this.pdfDocument = pdfDocument;- this.loadingTask._capability.resolve(pdfDocument);+ loadingTask._capability.resolve(pdfDocument);}, this);messageHandler.on('NeedPassword',@@ -2692,6 +2856,9 @@ var WorkerTransport = (function WorkerTransportClosure() {}, this);messageHandler.on('StartRenderPage', function transportRender(data) {+ if (this.destroyed) {+ return; // Ignore any pending requests if the worker was terminated.+ }var page = this.pageCache[data.pageIndex];page.stats.timeEnd('Page Request');@@ -2699,12 +2866,19 @@ var WorkerTransport = (function WorkerTransportClosure() {}, this);messageHandler.on('RenderPageChunk', function transportRender(data) {+ if (this.destroyed) {+ return; // Ignore any pending requests if the worker was terminated.+ }var page = this.pageCache[data.pageIndex];page._renderPageChunk(data.operatorList, data.intent);}, this);messageHandler.on('commonobj', function transportObj(data) {+ if (this.destroyed) {+ return; // Ignore any pending requests if the worker was terminated.+ }+var id = data[0];var type = data[1];if (this.commonObjs.hasData(id)) {@@ -2741,6 +2915,10 @@ var WorkerTransport = (function WorkerTransportClosure() {}, this);messageHandler.on('obj', function transportObj(data) {+ if (this.destroyed) {+ return; // Ignore any pending requests if the worker was terminated.+ }+var id = data[0];var pageIndex = data[1];var type = data[2];@@ -2772,6 +2950,10 @@ var WorkerTransport = (function WorkerTransportClosure() {}, this);messageHandler.on('DocProgress', function transportDocProgress(data) {+ if (this.destroyed) {+ return; // Ignore any pending requests if the worker was terminated.+ }+var loadingTask = this.loadingTask;if (loadingTask.onProgress) {loadingTask.onProgress({@@ -2782,6 +2964,10 @@ var WorkerTransport = (function WorkerTransportClosure() {}, this);messageHandler.on('PageError', function transportError(data) {+ if (this.destroyed) {+ return; // Ignore any pending requests if the worker was terminated.+ }+var page = this.pageCache[data.pageNum - 1];var intentState = page.intentStates[data.intent];if (intentState.displayReadyCapability) {@@ -2792,6 +2978,10 @@ var WorkerTransport = (function WorkerTransportClosure() {}, this);messageHandler.on('JpegDecode', function(data) {+ if (this.destroyed) {+ return Promise.reject('Worker was terminated');+ }+var imageUrl = data[0];var components = data[1];if (components !== 3 && components !== 1) {@@ -2831,10 +3021,16 @@ var WorkerTransport = (function WorkerTransportClosure() {};img.src = imageUrl;});- });+ }, this);},fetchDocument: function WorkerTransport_fetchDocument(loadingTask, source) {+ if (this.destroyed) {+ loadingTask._capability.reject(new Error('Loading aborted'));+ this.destroyCapability.resolve();+ return;+ }+this.loadingTask = loadingTask;source.disableAutoFetch = PDFJS.disableAutoFetch;@@ -2873,6 +3069,9 @@ var WorkerTransport = (function WorkerTransportClosure() {var promise = this.messageHandler.sendWithPromise('GetPage', {pageIndex: pageIndex}).then(function (pageInfo) {+ if (this.destroyed) {+ throw new Error('Transport destroyed');+ }var page = new PDFPageProxy(pageIndex, pageInfo, this);this.pageCache[pageIndex] = page;return page;@@ -2930,7 +3129,7 @@ var WorkerTransport = (function WorkerTransportClosure() {for (var i = 0, ii = this.pageCache.length; i < ii; i++) {var page = this.pageCache[i];if (page) {- page.destroy();+ page.cleanup();}}this.commonObjs.clear();@@ -3051,6 +3250,7 @@ var PDFObjects = (function PDFObjectsClosure() {/*** Allows controlling of the rendering tasks.* @class+ * @alias RenderTask*/var RenderTask = (function RenderTaskClosure() {function RenderTask(internalRenderTask) {@@ -4251,6 +4451,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {this.current = this.stateStack.pop();this.ctx.restore();+ // Ensure that the clipping path is reset (fixes issue6413.pdf).+ this.pendingClip = null;+this.cachedGetSinglePixelWidth = null;}},@@ -4377,12 +4580,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {ctx.fill();ctx.mozFillRule = 'nonzero';} else {- try {- ctx.fill('evenodd');- } catch (ex) {- // shouldn't really happen, but browsers might think differently- ctx.fill();- }+ ctx.fill('evenodd');}this.pendingEOFill = false;} else {@@ -4638,6 +4836,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {var textHScale = current.textHScale * fontDirection;var glyphsLength = glyphs.length;var vertical = font.vertical;+ var spacingDir = vertical ? 1 : -1;var defaultVMetrics = font.defaultVMetrics;var widthAdvanceScale = fontSize * current.fontMatrix[0];@@ -4679,16 +4878,13 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {var x = 0, i;for (i = 0; i < glyphsLength; ++i) {var glyph = glyphs[i];- if (glyph === null) {- // word break- x += fontDirection * wordSpacing;- continue;- } else if (isNum(glyph)) {- x += -glyph * fontSize * 0.001;+ if (isNum(glyph)) {+ x += spacingDir * glyph * fontSize / 1000;continue;}var restoreNeeded = false;+ var spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing;var character = glyph.fontChar;var accent = glyph.accent;var scaledX, scaledY, scaledAccentX, scaledAccentY;@@ -4732,7 +4928,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {}}- var charWidth = width * widthAdvanceScale + charSpacing * fontDirection;+ var charWidth = width * widthAdvanceScale + spacing * fontDirection;x += charWidth;if (restoreNeeded) {@@ -4754,6 +4950,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {var font = current.font;var fontSize = current.fontSize;var fontDirection = current.fontDirection;+ var spacingDir = font.vertical ? 1 : -1;var charSpacing = current.charSpacing;var wordSpacing = current.wordSpacing;var textHScale = current.textHScale * fontDirection;@@ -4761,7 +4958,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {var glyphsLength = glyphs.length;var isTextInvisible =current.textRenderingMode === TextRenderingMode.INVISIBLE;- var i, glyph, width;+ var i, glyph, width, spacingLength;if (isTextInvisible || fontSize === 0) {return;@@ -4776,18 +4973,14 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {for (i = 0; i < glyphsLength; ++i) {glyph = glyphs[i];- if (glyph === null) {- // word break- this.ctx.translate(wordSpacing, 0);- current.x += wordSpacing * textHScale;- continue;- } else if (isNum(glyph)) {- var spacingLength = -glyph * 0.001 * fontSize;+ if (isNum(glyph)) {+ spacingLength = spacingDir * glyph * fontSize / 1000;this.ctx.translate(spacingLength, 0);current.x += spacingLength * textHScale;continue;}+ var spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing;var operatorList = font.charProcOperatorList[glyph.operatorListId];if (!operatorList) {warn('Type3 character \"' + glyph.operatorListId +@@ -4802,7 +4995,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {this.restore();var transformed = Util.applyTransform([glyph.width, 0], fontMatrix);- width = transformed[0] * fontSize + charSpacing;+ width = transformed[0] * fontSize + spacing;ctx.translate(width, 0);current.x += width * textHScale;@@ -4834,8 +5027,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {var pattern;if (IR[0] === 'TilingPattern') {var color = IR[1];+ var baseTransform = this.baseTransform ||+ this.ctx.mozCurrentTransform.slice();pattern = new TilingPattern(IR, color, this.ctx, this.objs,- this.commonObjs, this.baseTransform);+ this.commonObjs, baseTransform);} else {pattern = getShadingPatternFromIR(IR);}@@ -5352,6 +5547,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {this.ctx.fillRect(0, 0, 1, 1);},+ paintXObject: function CanvasGraphics_paintXObject() {+ UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);+ warn('Unsupported \'paintXObject\' command.');+ },+// Marked contentmarkPoint: function CanvasGraphics_markPoint(tag) {@@ -5391,12 +5591,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {ctx.clip();ctx.mozFillRule = 'nonzero';} else {- try {- ctx.clip('evenodd');- } catch (ex) {- // shouldn't really happen, but browsers might think differently- ctx.clip();- }+ ctx.clip('evenodd');}} else {ctx.clip();@@ -5773,7 +5968,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {for (var j = 0, jj = ps.length; j < jj; j++) {coords[pIndex] = coordsMap[ps[j]];coords[pIndex + 1] = coordsMap[ps[j] + 1];- colors[cIndex] = colorsMap[cs[i]];+ colors[cIndex] = colorsMap[cs[j]];colors[cIndex + 1] = colorsMap[cs[j] + 1];colors[cIndex + 2] = colorsMap[cs[j] + 2];pIndex += 2;@@ -6311,6 +6506,18 @@ var FontLoader = {));},+ get isEvalSupported() {+ var evalSupport = false;+ if (PDFJS.isEvalSupported) {+ try {+ /* jshint evil: true */+ new Function('');+ evalSupport = true;+ } catch (e) {}+ }+ return shadow(this, 'isEvalSupported', evalSupport);+ },+loadTestFontId: 0,loadingContext: {@@ -6587,9 +6794,40 @@ var FontFaceObject = (function FontFaceObjectClosure() {getPathGenerator: function FontLoader_getPathGenerator(objs, character) {if (!(character in this.compiledGlyphs)) {- var js = objs.get(this.loadedName + '_path_' + character);- /*jshint -W054 */- this.compiledGlyphs[character] = new Function('c', 'size', js);+ var cmds = objs.get(this.loadedName + '_path_' + character);+ var current, i, len;++ // If we can, compile cmds into JS for MAXIMUM SPEED+ if (FontLoader.isEvalSupported) {+ var args, js = '';+ for (i = 0, len = cmds.length; i < len; i++) {+ current = cmds[i];++ if (current.args !== undefined) {+ args = current.args.join(',');+ } else {+ args = '';+ }++ js += 'c.' + current.cmd + '(' + args + ');\n';+ }+ /* jshint -W054 */+ this.compiledGlyphs[character] = new Function('c', 'size', js);+ } else {+ // But fall back on using Function.prototype.apply() if we're+ // blocked from using eval() for whatever reason (like CSP policies)+ this.compiledGlyphs[character] = function(c, size) {+ for (i = 0, len = cmds.length; i < len; i++) {+ current = cmds[i];++ if (current.cmd === 'scale') {+ current.args = [size, -size];+ }++ c[current.cmd].apply(c, current.args);+ }+ };+ }}return this.compiledGlyphs[character];}@@ -6840,8 +7078,9 @@ var AnnotationUtils = (function AnnotationUtilsClosure() {var link = document.createElement('a');link.href = link.title = item.url || '';- if (item.url && PDFJS.openExternalLinksInNewWindow) {- link.target = '_blank';++ if (item.url && isExternalLinkTargetSet()) {+ link.target = LinkTargetStringMap[PDFJS.externalLinkTarget];}container.appendChild(link);@@ -8048,10 +8287,8 @@ if (!PDFJS.workerSrc && typeof document !== 'undefined') {// workerSrc is not set -- using last script url to define default locationPDFJS.workerSrc = (function () {'use strict';- var scriptTagContainer = document.body ||- document.getElementsByTagName('head')[0];- var pdfjsSrc = scriptTagContainer.lastChild.src;- return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');+ var pdfJsSrc = document.currentScript.src;+ return pdfJsSrc && pdfJsSrc.replace(/\.js$/i, '.worker.js');})();}diff --git a/data/libs/pdfjs/build/pdf.worker.js b/data/libs/pdfjs/build/pdf.worker.jsindex 2c32874d1..fa30a1f09 100644--- a/data/libs/pdfjs/build/pdf.worker.js+++ b/data/libs/pdfjs/build/pdf.worker.js@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {(typeof window !== 'undefined' ? window : this).PDFJS = {};}-PDFJS.version = '1.1.366';-PDFJS.build = '9e9df56';+PDFJS.version = '1.2.109';+PDFJS.build = '875588d';(function pdfjsWrapper() {// Use strict in our context only - users might not want it@@ -225,6 +225,11 @@ function warn(msg) {}}+// Deprecated API function -- treated as warnings.+function deprecated(details) {+ warn('Deprecated API usage: ' + details);+}+// Fatal errors that should trigger the fallback UI and halt execution by// throwing an exception.function error(msg) {@@ -340,6 +345,47 @@ function shadow(obj, prop, value) {}PDFJS.shadow = shadow;+var LinkTarget = PDFJS.LinkTarget = {+ NONE: 0, // Default value.+ SELF: 1,+ BLANK: 2,+ PARENT: 3,+ TOP: 4,+};+var LinkTargetStringMap = [+ '',+ '_self',+ '_blank',+ '_parent',+ '_top'+];++function isExternalLinkTargetSet() {+ if (PDFJS.openExternalLinksInNewWindow) {+ warn('PDFJS.openExternalLinksInNewWindow is deprecated, ' ++ 'use PDFJS.externalLinkTarget instead.');+ if (PDFJS.externalLinkTarget === LinkTarget.NONE) {+ PDFJS.externalLinkTarget = LinkTarget.BLANK;+ }+ // Reset the deprecated parameter, to suppress further warnings.+ PDFJS.openExternalLinksInNewWindow = false;+ }+ switch (PDFJS.externalLinkTarget) {+ case LinkTarget.NONE:+ return false;+ case LinkTarget.SELF:+ case LinkTarget.BLANK:+ case LinkTarget.PARENT:+ case LinkTarget.TOP:+ return true;+ }+ warn('PDFJS.externalLinkTarget is invalid: ' + PDFJS.externalLinkTarget);+ // Reset the external link target, to suppress further warnings.+ PDFJS.externalLinkTarget = LinkTarget.NONE;+ return false;+}+PDFJS.isExternalLinkTargetSet = isExternalLinkTargetSet;+var PasswordResponses = PDFJS.PasswordResponses = {NEED_PASSWORD: 1,INCORRECT_PASSWORD: 2@@ -1508,6 +1554,10 @@ function MessageHandler(name, comObj) {data: result});}, function (reason) {+ if (reason instanceof Error) {+ // Serialize error to avoid "DataCloneError"+ reason = reason + '';+ }comObj.postMessage({isReply: true,callbackId: data.callbackId,@@ -1634,18 +1684,15 @@ var NetworkManager = (function NetworkManagerClosure() {}var supportsMozChunked = (function supportsMozChunkedClosure() {- var x = new XMLHttpRequest();try {+ var x = new XMLHttpRequest();// Firefox 37- required .open() to be called before setting responseType.// https://bugzilla.mozilla.org/show_bug.cgi?id=707484- x.open('GET', 'https://example.com');- } catch (e) {// Even though the URL is not visited, .open() could fail if the URL is// blocked, e.g. via the connect-src CSP directive or the NoScript addon.// When this error occurs, this feature detection method will mistakenly// report that moz-chunked-arraybuffer is not supported in Firefox 37-.- }- try {+ x.open('GET', 'https://example.com');x.responseType = 'moz-chunked-arraybuffer';return x.responseType === 'moz-chunked-arraybuffer';} catch (e) {@@ -1800,11 +1847,13 @@ var NetworkManager = (function NetworkManagerClosure() {});} else if (pendingRequest.onProgressiveData) {pendingRequest.onDone(null);- } else {+ } else if (chunk) {pendingRequest.onDone({begin: 0,chunk: chunk});+ } else if (pendingRequest.onError) {+ pendingRequest.onError(xhr.status);}},@@ -2130,7 +2179,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {this.chunksNeededByRequest = {};this.requestsByChunk = {};- this.callbacksByRequest = {};+ this.promisesByRequest = {};this.progressiveDataLength = 0;this._loadedStreamCapability = createPromiseCapability();@@ -2149,12 +2198,11 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {// contiguous ranges to load in as few requests as possiblerequestAllChunks: function ChunkedStreamManager_requestAllChunks() {var missingChunks = this.stream.getMissingChunks();- this.requestChunks(missingChunks);+ this._requestChunks(missingChunks);return this._loadedStreamCapability.promise;},- requestChunks: function ChunkedStreamManager_requestChunks(chunks,- callback) {+ _requestChunks: function ChunkedStreamManager_requestChunks(chunks) {var requestId = this.currRequestId++;var chunksNeeded;@@ -2167,13 +2215,11 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {}if (isEmptyObj(chunksNeeded)) {- if (callback) {- callback();- }- return;+ return Promise.resolve();}- this.callbacksByRequest[requestId] = callback;+ var capability = createPromiseCapability();+ this.promisesByRequest[requestId] = capability;var chunksToRequest = [];for (var chunk in chunksNeeded) {@@ -2186,7 +2232,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {}if (!chunksToRequest.length) {- return;+ return capability.promise;}var groupedChunksToRequest = this.groupChunks(chunksToRequest);@@ -2197,6 +2243,8 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);this.sendRequest(begin, end);}++ return capability.promise;},getStream: function ChunkedStreamManager_getStream() {@@ -2204,8 +2252,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {},// Loads any chunks in the requested range that are not yet loaded- requestRange: function ChunkedStreamManager_requestRange(- begin, end, callback) {+ requestRange: function ChunkedStreamManager_requestRange(begin, end) {end = Math.min(end, this.length);@@ -2217,11 +2264,10 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {chunks.push(chunk);}- this.requestChunks(chunks, callback);+ return this._requestChunks(chunks);},- requestRanges: function ChunkedStreamManager_requestRanges(ranges,- callback) {+ requestRanges: function ChunkedStreamManager_requestRanges(ranges) {ranges = ranges || [];var chunksToRequest = [];@@ -2236,7 +2282,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {}chunksToRequest.sort(function(a, b) { return a - b; });- this.requestChunks(chunksToRequest, callback);+ return this._requestChunks(chunksToRequest);},// Groups a sorted array of chunks into as few contiguous larger@@ -2335,17 +2381,15 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);}if (isInt(nextEmptyChunk)) {- this.requestChunks([nextEmptyChunk]);+ this._requestChunks([nextEmptyChunk]);}}for (i = 0; i < loadedRequests.length; ++i) {requestId = loadedRequests[i];- var callback = this.callbacksByRequest[requestId];- delete this.callbacksByRequest[requestId];- if (callback) {- callback();- }+ var capability = this.promisesByRequest[requestId];+ delete this.promisesByRequest[requestId];+ capability.resolve();}this.msgHandler.send('DocProgress', {@@ -2366,6 +2410,16 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {getEndChunk: function ChunkedStreamManager_getEndChunk(end) {var chunk = Math.floor((end - 1) / this.chunkSize) + 1;return chunk;+ },++ abort: function ChunkedStreamManager_abort() {+ if (this.networkManager) {+ this.networkManager.abortAllRequests();+ }+ for(var requestId in this.promisesByRequest) {+ var capability = this.promisesByRequest[requestId];+ capability.reject(new Error('Request was aborted'));+ }}};@@ -2373,9 +2427,6 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {})();-// The maximum number of bytes fetched per range request-var RANGE_CHUNK_SIZE = 65536;-// TODO(mack): Make use of PDFJS.Util.inherit() when it becomes availablevar BasePdfManager = (function BasePdfManagerClosure() {function BasePdfManager() {@@ -2507,7 +2558,8 @@ var NetworkPdfManager = (function NetworkPdfManagerClosure() {disableAutoFetch: args.disableAutoFetch,initialData: args.initialData};- this.streamManager = new ChunkedStreamManager(args.length, RANGE_CHUNK_SIZE,+ this.streamManager = new ChunkedStreamManager(args.length,+ args.rangeChunkSize,args.url, params);this.pdfDocument = new PDFDocument(this, this.streamManager.getStream(),@@ -2537,7 +2589,8 @@ var NetworkPdfManager = (function NetworkPdfManagerClosure() {reject(e);return;}- pdfManager.streamManager.requestRange(e.begin, e.end, ensureHelper);+ pdfManager.streamManager.requestRange(e.begin, e.end).+ then(ensureHelper, reject);}}@@ -2547,11 +2600,7 @@ var NetworkPdfManager = (function NetworkPdfManagerClosure() {NetworkPdfManager.prototype.requestRange =function NetworkPdfManager_requestRange(begin, end) {- return new Promise(function (resolve) {- this.streamManager.requestRange(begin, end, function() {- resolve();- });- }.bind(this));+ return this.streamManager.requestRange(begin, end);};NetworkPdfManager.prototype.requestLoadedStream =@@ -2571,7 +2620,7 @@ var NetworkPdfManager = (function NetworkPdfManagerClosure() {NetworkPdfManager.prototype.terminate =function NetworkPdfManager_terminate() {- this.streamManager.networkManager.abortAllRequests();+ this.streamManager.abort();};return NetworkPdfManager;@@ -2716,7 +2765,7 @@ var Page = (function PageClosure() {}.bind(this));},- getOperatorList: function Page_getOperatorList(handler, intent) {+ getOperatorList: function Page_getOperatorList(handler, task, intent) {var self = this;var pdfManager = this.pdfManager;@@ -2749,8 +2798,8 @@ var Page = (function PageClosure() {pageIndex: self.pageIndex,intent: intent});- return partialEvaluator.getOperatorList(contentStream, self.resources,- opList).then(function () {+ return partialEvaluator.getOperatorList(contentStream, task,+ self.resources, opList).then(function () {return opList;});});@@ -2767,7 +2816,7 @@ var Page = (function PageClosure() {}var annotationsReadyPromise = Annotation.appendToOperatorList(- annotations, pageOpList, pdfManager, partialEvaluator, intent);+ annotations, pageOpList, pdfManager, partialEvaluator, task, intent);return annotationsReadyPromise.then(function () {pageOpList.flush(true);return pageOpList;@@ -2775,7 +2824,7 @@ var Page = (function PageClosure() {});},- extractTextContent: function Page_extractTextContent() {+ extractTextContent: function Page_extractTextContent(task) {var handler = {on: function nullHandlerOn() {},send: function nullHandlerSend() {}@@ -2804,6 +2853,7 @@ var Page = (function PageClosure() {self.fontCache);return partialEvaluator.getTextContent(contentStream,+ task,self.resources);});},@@ -3065,12 +3115,11 @@ var PDFDocument = (function PDFDocumentClosure() {return shadow(this, 'documentInfo', docInfo);},get fingerprint() {- var xref = this.xref, idArray, hash, fileID = '';+ var xref = this.xref, hash, fileID = '';+ var idArray = xref.trailer.get('ID');- if (xref.trailer.has('ID')) {- idArray = xref.trailer.get('ID');- }- if (idArray && isArray(idArray) && idArray[0] !== EMPTY_FINGERPRINT) {+ if (idArray && isArray(idArray) && idArray[0] && isString(idArray[0]) &&+ idArray[0] !== EMPTY_FINGERPRINT) {hash = stringToBytes(idArray[0]);} else {if (this.stream.ensureRange) {@@ -3214,6 +3263,23 @@ var Dict = (function DictClosure() {return Promise.resolve(value);},+ // Same as get(), but dereferences all elements if the result is an Array.+ getArray: function Dict_getArray(key1, key2, key3) {+ var value = this.get(key1, key2, key3);+ var xref = this.xref;+ if (!isArray(value) || !xref) {+ return value;+ }+ value = value.slice(); // Ensure that we don't modify the Dict data.+ for (var i = 0, ii = value.length; i < ii; i++) {+ if (!isRef(value[i])) {+ continue;+ }+ value[i] = xref.fetch(value[i]);+ }+ return value;+ },+// no dereferencinggetRaw: function Dict_getRaw(key) {return this.map[key];@@ -4092,9 +4158,12 @@ var XRef = (function XRefClosure() {indexObjects: function XRef_indexObjects() {// Simple scan through the PDF content to find objects,// trailers and XRef streams.+ var TAB = 0x9, LF = 0xA, CR = 0xD, SPACE = 0x20;+ var PERCENT = 0x25, LT = 0x3C;+function readToken(data, offset) {var token = '', ch = data[offset];- while (ch !== 13 && ch !== 10) {+ while (ch !== LF && ch !== CR && ch !== LT) {if (++offset >= data.length) {break;}@@ -4120,12 +4189,16 @@ var XRef = (function XRefClosure() {}return skipped;}+ var objRegExp = /^(\d+)\s+(\d+)\s+obj\b/;var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,101, 102]);var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);+ // Clear out any existing entries, since they may be bogus.+ this.entries.length = 0;+var stream = this.stream;stream.pos = 0;var buffer = stream.getBytes();@@ -4133,27 +4206,28 @@ var XRef = (function XRefClosure() {var trailers = [], xrefStms = [];while (position < length) {var ch = buffer[position];- if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {+ if (ch === TAB || ch === LF || ch === CR || ch === SPACE) {++position;continue;}- if (ch === 37) { // %-comment+ if (ch === PERCENT) { // %-commentdo {++position;if (position >= length) {break;}ch = buffer[position];- } while (ch !== 13 && ch !== 10);+ } while (ch !== LF && ch !== CR);continue;}var token = readToken(buffer, position);var m;- if (token === 'xref') {+ if (token.indexOf('xref') === 0 &&+ (token.length === 4 || /\s/.test(token[4]))) {position += skipUntil(buffer, position, trailerBytes);trailers.push(position);position += skipUntil(buffer, position, startxrefBytes);- } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {+ } else if ((m = objRegExp.exec(token))) {if (typeof this.entries[m[1]] === 'undefined') {this.entries[m[1]] = {offset: position - stream.start,@@ -4174,6 +4248,10 @@ var XRef = (function XRefClosure() {}position += contentLength;+ } else if (token.indexOf('trailer') === 0 &&+ (token.length === 7 || /\s/.test(token[7]))) {+ trailers.push(position);+ position += skipUntil(buffer, position, startxrefBytes);} else {position += token.length + 1;}@@ -4428,9 +4506,9 @@ var XRef = (function XRefClosure() {resolve(xref.fetch(ref, suppressEncryption));} catch (e) {if (e instanceof MissingDataException) {- streamManager.requestRange(e.begin, e.end, function () {+ streamManager.requestRange(e.begin, e.end).then(function () {tryFetch(resolve, reject);- });+ }, reject);return;}reject(e);@@ -4706,6 +4784,7 @@ var ObjectLoader = (function() {this.keys = keys;this.xref = xref;this.refSet = null;+ this.capability = null;}ObjectLoader.prototype = {@@ -4726,11 +4805,11 @@ var ObjectLoader = (function() {nodesToVisit.push(this.obj[keys[i]]);}- this.walk(nodesToVisit);+ this._walk(nodesToVisit);return this.capability.promise;},- walk: function ObjectLoader_walk(nodesToVisit) {+ _walk: function ObjectLoader_walk(nodesToVisit) {var nodesToRevisit = [];var pendingRequests = [];// DFS walk of the object graph.@@ -4777,7 +4856,7 @@ var ObjectLoader = (function() {}if (pendingRequests.length) {- this.xref.stream.manager.requestRanges(pendingRequests,+ this.xref.stream.manager.requestRanges(pendingRequests).then(function pendingRequestCallback() {nodesToVisit = nodesToRevisit;for (var i = 0; i < nodesToRevisit.length; i++) {@@ -4788,8 +4867,8 @@ var ObjectLoader = (function() {this.refSet.remove(node);}}- this.walk(nodesToVisit);- }.bind(this));+ this._walk(nodesToVisit);+ }.bind(this), this.capability.reject);return;}// Everything is loaded.@@ -4906,10 +4985,11 @@ var ExpertSubsetCharset = [var DEFAULT_ICON_SIZE = 22; // px/**- * @constructor+ * @class+ * @alias AnnotationFactory*/function AnnotationFactory() {}-AnnotationFactory.prototype = {+AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {/*** @param {XRef} xref* @param {Object} ref@@ -5163,7 +5243,7 @@ var Annotation = (function AnnotationClosure() {}.bind(this));},- getOperatorList: function Annotation_getOperatorList(evaluator) {+ getOperatorList: function Annotation_getOperatorList(evaluator, task) {if (!this.appearance) {return Promise.resolve(new OperatorList());@@ -5190,7 +5270,8 @@ var Annotation = (function AnnotationClosure() {return resourcesPromise.then(function(resources) {var opList = new OperatorList();opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);- return evaluator.getOperatorList(self.appearance, resources, opList).+ return evaluator.getOperatorList(self.appearance, task,+ resources, opList).then(function () {opList.addOp(OPS.endAnnotation, []);self.appearance.reset();@@ -5201,7 +5282,7 @@ var Annotation = (function AnnotationClosure() {};Annotation.appendToOperatorList = function Annotation_appendToOperatorList(- annotations, opList, pdfManager, partialEvaluator, intent) {+ annotations, opList, pdfManager, partialEvaluator, task, intent) {function reject(e) {annotationsReadyCapability.reject(e);@@ -5214,7 +5295,7 @@ var Annotation = (function AnnotationClosure() {if (intent === 'display' && annotations[i].isViewable() ||intent === 'print' && annotations[i].isPrintable()) {annotationPromises.push(- annotations[i].getOperatorList(partialEvaluator));+ annotations[i].getOperatorList(partialEvaluator, task));}}Promise.all(annotationPromises).then(function(datas) {@@ -5446,9 +5527,10 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {}Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {- getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {+ getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator,+ task) {if (this.appearance) {- return Annotation.prototype.getOperatorList.call(this, evaluator);+ return Annotation.prototype.getOperatorList.call(this, evaluator, task);}var opList = new OperatorList();@@ -5461,7 +5543,8 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {}var stream = new Stream(stringToBytes(data.defaultAppearance));- return evaluator.getOperatorList(stream, this.fieldResources, opList).+ return evaluator.getOperatorList(stream, task,+ this.fieldResources, opList).then(function () {return opList;});@@ -9676,9 +9759,10 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {if (pdfAlgorithm.checkUserPassword(password, userValidationSalt,userPassword)) {return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption);- } else if (pdfAlgorithm.checkOwnerPassword(password, ownerValidationSalt,- uBytes,- ownerPassword)) {+ } else if (password.length && pdfAlgorithm.checkOwnerPassword(password,+ ownerValidationSalt,+ uBytes,+ ownerPassword)) {return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes,ownerEncryption);}@@ -10848,9 +10932,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {buildFormXObject: function PartialEvaluator_buildFormXObject(resources,xobj, smask,operatorList,+ task,initialState) {- var matrix = xobj.dict.get('Matrix');- var bbox = xobj.dict.get('BBox');+ var matrix = xobj.dict.getArray('Matrix');+ var bbox = xobj.dict.getArray('BBox');var group = xobj.dict.get('Group');if (group) {var groupOptions = {@@ -10880,7 +10965,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);- return this.getOperatorList(xobj,+ return this.getOperatorList(xobj, task,(xobj.dict.get('Resources') || resources), operatorList, initialState).then(function () {operatorList.addOp(OPS.paintFormXObjectEnd, []);@@ -10992,7 +11077,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {},handleSMask: function PartialEvaluator_handleSmask(smask, resources,- operatorList,+ operatorList, task,stateManager) {var smaskContent = smask.get('G');var smaskOptions = {@@ -11000,18 +11085,22 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {backdrop: smask.get('BC')};return this.buildFormXObject(resources, smaskContent, smaskOptions,- operatorList, stateManager.state.clone());+ operatorList, task, stateManager.state.clone());},handleTilingType:function PartialEvaluator_handleTilingType(fn, args, resources,pattern, patternDict,- operatorList) {+ operatorList, task) {// Create an IR of the pattern code.var tilingOpList = new OperatorList();- return this.getOperatorList(pattern,- (patternDict.get('Resources') || resources), tilingOpList).- then(function () {+ // Merge the available resources, to prevent issues when the patternDict+ // is missing some /Resources entries (fixes issue6541.pdf).+ var resourcesArray = [patternDict.get('Resources'), resources];+ var patternResources = Dict.merge(this.xref, resourcesArray);++ return this.getOperatorList(pattern, task, patternResources,+ tilingOpList).then(function () {// Add the dependencies to the parent operator list so they are// resolved before sub operator list is executed synchronously.operatorList.addDependencies(tilingOpList.dependencies);@@ -11024,7 +11113,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {handleSetFont:function PartialEvaluator_handleSetFont(resources, fontArgs, fontRef,- operatorList, state) {+ operatorList, task, state) {// TODO(mack): Not needed?var fontName;if (fontArgs) {@@ -11038,8 +11127,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {if (!translated.font.isType3Font) {return translated;}- return translated.loadType3Data(self, resources, operatorList).then(- function () {+ return translated.loadType3Data(self, resources, operatorList, task).+ then(function () {return translated;});}).then(function (translated) {@@ -11068,9 +11157,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {for (var i = 0, ii = glyphs.length; i < ii; i++) {var glyph = glyphs[i];- if (glyph === null) {- continue;- }buildPath(glyph.fontChar);// If the glyph has an accent we need to build a path for its@@ -11086,8 +11172,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {},setGState: function PartialEvaluator_setGState(resources, gState,- operatorList, xref,- stateManager) {+ operatorList, task,+ xref, stateManager) {// This array holds the converted/processed state data.var gStateObj = [];var gStateMap = gState.map;@@ -11111,8 +11197,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {break;case 'Font':promise = promise.then(function () {- return self.handleSetFont(resources, null, value[0],- operatorList, stateManager.state).+ return self.handleSetFont(resources, null, value[0], operatorList,+ task, stateManager.state).then(function (loadedName) {operatorList.addDependency(loadedName);gStateObj.push([key, [loadedName, value[1]]]);@@ -11131,7 +11217,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {if (isDict(dict)) {promise = promise.then(function () {return self.handleSMask(dict, resources, operatorList,- stateManager);+ task, stateManager);});gStateObj.push([key, true]);} else {@@ -11312,7 +11398,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {},handleColorN: function PartialEvaluator_handleColorN(operatorList, fn, args,- cs, patterns, resources, xref) {+ cs, patterns, resources, task, xref) {// compile tiling patternsvar patternName = args[args.length - 1];// SCN/scn applies patterns along with normal colors@@ -11325,7 +11411,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {if (typeNum === TILING_PATTERN) {var color = cs.base ? cs.base.getRgb(args, 0) : null;return this.handleTilingType(fn, color, resources, pattern,- dict, operatorList);+ dict, operatorList, task);} else if (typeNum === SHADING_PATTERN) {var shading = dict.get('Shading');var matrix = dict.get('Matrix');@@ -11342,6 +11428,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {},getOperatorList: function PartialEvaluator_getOperatorList(stream,+ task,resources,operatorList,initialState) {@@ -11360,6 +11447,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {var timeSlotManager = new TimeSlotManager();return new Promise(function next(resolve, reject) {+ task.ensureNotTerminated();timeSlotManager.reset();var stop, operation = {}, i, ii, cs;while (!(stop = timeSlotManager.check())) {@@ -11402,7 +11490,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {if (type.name === 'Form') {stateManager.save();return self.buildFormXObject(resources, xobj, null,- operatorList,+ operatorList, task,stateManager.state.clone()).then(function () {stateManager.restore();@@ -11426,8 +11514,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {case OPS.setFont:var fontSize = args[1];// eagerly collect all fonts- return self.handleSetFont(resources, args, null,- operatorList, stateManager.state).+ return self.handleSetFont(resources, args, null, operatorList,+ task, stateManager.state).then(function (loadedName) {operatorList.addDependency(loadedName);operatorList.addOp(OPS.setFont, [loadedName, fontSize]);@@ -11454,11 +11542,12 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {var arr = args[0];var combinedGlyphs = [];var arrLength = arr.length;+ var state = stateManager.state;for (i = 0; i < arrLength; ++i) {var arrItem = arr[i];if (isString(arrItem)) {Array.prototype.push.apply(combinedGlyphs,- self.handleText(arrItem, stateManager.state));+ self.handleText(arrItem, state));} else if (isNum(arrItem)) {combinedGlyphs.push(arrItem);}@@ -11532,7 +11621,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {cs = stateManager.state.fillColorSpace;if (cs.name === 'Pattern') {return self.handleColorN(operatorList, OPS.setFillColorN,- args, cs, patterns, resources, xref).then(function() {+ args, cs, patterns, resources, task, xref).then(function() {next(resolve, reject);}, reject);}@@ -11543,7 +11632,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {cs = stateManager.state.strokeColorSpace;if (cs.name === 'Pattern') {return self.handleColorN(operatorList, OPS.setStrokeColorN,- args, cs, patterns, resources, xref).then(function() {+ args, cs, patterns, resources, task, xref).then(function() {next(resolve, reject);}, reject);}@@ -11577,8 +11666,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {}var gState = extGState.get(dictName.name);- return self.setGState(resources, gState, operatorList, xref,- stateManager).then(function() {+ return self.setGState(resources, gState, operatorList, task,+ xref, stateManager).then(function() {next(resolve, reject);}, reject);case OPS.moveTo:@@ -11592,13 +11681,31 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {case OPS.rectangle:self.buildPath(operatorList, fn, args);continue;+ case OPS.markPoint:+ case OPS.markPointProps:+ case OPS.beginMarkedContent:+ case OPS.beginMarkedContentProps:+ case OPS.endMarkedContent:+ case OPS.beginCompat:+ case OPS.endCompat:+ // Ignore operators where the corresponding handlers are known to+ // be no-op in CanvasGraphics (display/canvas.js). This prevents+ // serialization errors and is also a bit more efficient.+ // We could also try to serialize all objects in a general way,+ // e.g. as done in https://github.com/mozilla/pdf.js/pull/6266,+ // but doing so is meaningless without knowing the semantics.+ continue;+ default:+ // Note: Let's hope that the ignored operator does not have any+ // non-serializable arguments, otherwise postMessage will throw+ // "An object could not be cloned.".}operatorList.addOp(fn, args);}if (stop) {deferred.then(function () {next(resolve, reject);- });+ }, reject);return;}// Some PDFs don't close all restores inside object/form.@@ -11610,7 +11717,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {});},- getTextContent: function PartialEvaluator_getTextContent(stream, resources,+ getTextContent: function PartialEvaluator_getTextContent(stream, task,+ resources,stateManager) {stateManager = (stateManager || new StateManager(new TextState()));@@ -11619,9 +11727,26 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {items: [],styles: Object.create(null)};- var bidiTexts = textContent.items;+ var textContentItem = {+ initialized: false,+ str: [],+ width: 0,+ height: 0,+ vertical: false,+ lastAdvanceWidth: 0,+ lastAdvanceHeight: 0,+ textAdvanceScale: 0,+ spaceWidth: 0,+ fakeSpaceMin: Infinity,+ fakeMultiSpaceMin: Infinity,+ fakeMultiSpaceMax: -0,+ textRunBreakAllowed: false,+ transform: null,+ fontName: null+ };var SPACE_FACTOR = 0.3;var MULTI_SPACE_FACTOR = 1.5;+ var MULTI_SPACE_FACTOR_MAX = 4;var self = this;var xref = this.xref;@@ -11636,7 +11761,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {var textState;- function newTextChunk() {+ function ensureTextContentItem() {+ if (textContentItem.initialized) {+ return textContentItem;+ }var font = textState.font;if (!(font.loadedName in textContent.styles)) {textContent.styles[font.loadedName] = {@@ -11646,24 +11774,79 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {vertical: font.vertical};}- return {- // |str| is initially an array which we push individual chars to, and- // then runBidi() overwrites it with the final string.- str: [],- dir: null,- width: 0,- height: 0,- transform: null,- fontName: font.loadedName- };+ textContentItem.fontName = font.loadedName;++ // 9.4.4 Text Space Details+ var tsm = [textState.fontSize * textState.textHScale, 0,+ 0, textState.fontSize,+ 0, textState.textRise];++ if (font.isType3Font &&+ textState.fontMatrix !== FONT_IDENTITY_MATRIX &&+ textState.fontSize === 1) {+ var glyphHeight = font.bbox[3] - font.bbox[1];+ if (glyphHeight > 0) {+ glyphHeight = glyphHeight * textState.fontMatrix[3];+ tsm[3] *= glyphHeight;+ }+ }++ var trm = Util.transform(textState.ctm,+ Util.transform(textState.textMatrix, tsm));+ textContentItem.transform = trm;+ if (!font.vertical) {+ textContentItem.width = 0;+ textContentItem.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);+ textContentItem.vertical = false;+ } else {+ textContentItem.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);+ textContentItem.height = 0;+ textContentItem.vertical = true;+ }++ var a = textState.textLineMatrix[0];+ var b = textState.textLineMatrix[1];+ var scaleLineX = Math.sqrt(a * a + b * b);+ a = textState.ctm[0];+ b = textState.ctm[1];+ var scaleCtmX = Math.sqrt(a * a + b * b);+ textContentItem.textAdvanceScale = scaleCtmX * scaleLineX;+ textContentItem.lastAdvanceWidth = 0;+ textContentItem.lastAdvanceHeight = 0;++ var spaceWidth = font.spaceWidth / 1000 * textState.fontSize;+ if (spaceWidth) {+ textContentItem.spaceWidth = spaceWidth;+ textContentItem.fakeSpaceMin = spaceWidth * SPACE_FACTOR;+ textContentItem.fakeMultiSpaceMin = spaceWidth * MULTI_SPACE_FACTOR;+ textContentItem.fakeMultiSpaceMax =+ spaceWidth * MULTI_SPACE_FACTOR_MAX;+ // It's okay for monospace fonts to fake as much space as needed.+ textContentItem.textRunBreakAllowed = !font.isMonospace;+ } else {+ textContentItem.spaceWidth = 0;+ textContentItem.fakeSpaceMin = Infinity;+ textContentItem.fakeMultiSpaceMin = Infinity;+ textContentItem.fakeMultiSpaceMax = 0;+ textContentItem.textRunBreakAllowed = false;+ }+++ textContentItem.initialized = true;+ return textContentItem;}- function runBidi(textChunk) {+ function runBidiTransform(textChunk) {var str = textChunk.str.join('');- var bidiResult = PDFJS.bidi(str, -1, textState.font.vertical);- textChunk.str = bidiResult.str;- textChunk.dir = bidiResult.dir;- return textChunk;+ var bidiResult = PDFJS.bidi(str, -1, textChunk.vertical);+ return {+ str: bidiResult.str,+ dir: bidiResult.dir,+ width: textChunk.width,+ height: textChunk.height,+ transform: textChunk.transform,+ fontName: textChunk.fontName+ };}function handleSetFont(fontName, fontRef) {@@ -11675,43 +11858,15 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {});}- function buildTextGeometry(chars, textChunk) {+ function buildTextContentItem(chars) {var font = textState.font;- textChunk = textChunk || newTextChunk();- if (!textChunk.transform) {- // 9.4.4 Text Space Details- var tsm = [textState.fontSize * textState.textHScale, 0,- 0, textState.fontSize,- 0, textState.textRise];-- if (font.isType3Font &&- textState.fontMatrix !== FONT_IDENTITY_MATRIX &&- textState.fontSize === 1) {- var glyphHeight = font.bbox[3] - font.bbox[1];- if (glyphHeight > 0) {- glyphHeight = glyphHeight * textState.fontMatrix[3];- tsm[3] *= glyphHeight;- }- }-- var trm = textChunk.transform = Util.transform(textState.ctm,- Util.transform(textState.textMatrix, tsm));- if (!font.vertical) {- textChunk.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);- } else {- textChunk.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);- }- }+ var textChunk = ensureTextContentItem();var width = 0;var height = 0;var glyphs = font.charsToGlyphs(chars);var defaultVMetrics = font.defaultVMetrics;for (var i = 0; i < glyphs.length; i++) {var glyph = glyphs[i];- if (!glyph) { // Previous glyph was a space.- width += textState.wordSpacing * textState.textHScale;- continue;- }var vMetricX = null;var vMetricY = null;var glyphWidth = null;@@ -11747,11 +11902,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {// var x = pt[0];// var y = pt[1];- var charSpacing = 0;- if (textChunk.str.length > 0) {- // Apply char spacing only when there are chars.- // As a result there is only spacing between glyphs.- charSpacing = textState.charSpacing;+ var charSpacing = textState.charSpacing;+ if (glyph.isSpace) {+ var wordSpacing = textState.wordSpacing;+ charSpacing += wordSpacing;+ if (wordSpacing > 0) {+ addFakeSpaces(wordSpacing, textChunk.str);+ }}var tx = 0;@@ -11771,23 +11928,45 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {textChunk.str.push(glyphUnicode);}- var a = textState.textLineMatrix[0];- var b = textState.textLineMatrix[1];- var scaleLineX = Math.sqrt(a * a + b * b);- a = textState.ctm[0];- b = textState.ctm[1];- var scaleCtmX = Math.sqrt(a * a + b * b);if (!font.vertical) {- textChunk.width += width * scaleCtmX * scaleLineX;+ textChunk.lastAdvanceWidth = width;+ textChunk.width += width * textChunk.textAdvanceScale;} else {- textChunk.height += Math.abs(height * scaleCtmX * scaleLineX);+ textChunk.lastAdvanceHeight = height;+ textChunk.height += Math.abs(height * textChunk.textAdvanceScale);}+return textChunk;}+ function addFakeSpaces(width, strBuf) {+ if (width < textContentItem.fakeSpaceMin) {+ return;+ }+ if (width < textContentItem.fakeMultiSpaceMin) {+ strBuf.push(' ');+ return;+ }+ var fakeSpaces = Math.round(width / textContentItem.spaceWidth);+ while (fakeSpaces-- > 0) {+ strBuf.push(' ');+ }+ }++ function flushTextContentItem() {+ if (!textContentItem.initialized) {+ return;+ }+ textContent.items.push(runBidiTransform(textContentItem));++ textContentItem.initialized = false;+ textContentItem.str.length = 0;+ }+var timeSlotManager = new TimeSlotManager();return new Promise(function next(resolve, reject) {+ task.ensureNotTerminated();timeSlotManager.reset();var stop, operation = {}, args = [];while (!(stop = timeSlotManager.check())) {@@ -11802,35 +11981,62 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {textState = stateManager.state;var fn = operation.fn;args = operation.args;+ var advance;switch (fn | 0) {case OPS.setFont:+ flushTextContentItem();textState.fontSize = args[1];return handleSetFont(args[0].name).then(function() {next(resolve, reject);}, reject);case OPS.setTextRise:+ flushTextContentItem();textState.textRise = args[0];break;case OPS.setHScale:+ flushTextContentItem();textState.textHScale = args[0] / 100;break;case OPS.setLeading:+ flushTextContentItem();textState.leading = args[0];break;case OPS.moveText:+ // Optimization to treat same line movement as advance+ var isSameTextLine = !textState.font ? false :+ ((textState.font.vertical ? args[0] : args[1]) === 0);+ advance = args[0] - args[1];+ if (isSameTextLine && textContentItem.initialized &&+ advance > 0 &&+ advance <= textContentItem.fakeMultiSpaceMax) {+ textState.translateTextLineMatrix(args[0], args[1]);+ textContentItem.width +=+ (args[0] - textContentItem.lastAdvanceWidth);+ textContentItem.height +=+ (args[1] - textContentItem.lastAdvanceHeight);+ var diff = (args[0] - textContentItem.lastAdvanceWidth) -+ (args[1] - textContentItem.lastAdvanceHeight);+ addFakeSpaces(diff, textContentItem.str);+ break;+ }++ flushTextContentItem();textState.translateTextLineMatrix(args[0], args[1]);textState.textMatrix = textState.textLineMatrix.slice();break;case OPS.setLeadingMoveText:+ flushTextContentItem();textState.leading = -args[1];textState.translateTextLineMatrix(args[0], args[1]);textState.textMatrix = textState.textLineMatrix.slice();break;case OPS.nextLine:+ flushTextContentItem();textState.carriageReturn();break;case OPS.setTextMatrix:+ flushTextContentItem();textState.setTextMatrix(args[0], args[1], args[2], args[3],args[4], args[5]);textState.setTextLineMatrix(args[0], args[1], args[2], args[3],@@ -11843,58 +12049,78 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {textState.wordSpacing = args[0];break;case OPS.beginText:+ flushTextContentItem();textState.textMatrix = IDENTITY_MATRIX.slice();textState.textLineMatrix = IDENTITY_MATRIX.slice();break;case OPS.showSpacedText:var items = args[0];- var textChunk = newTextChunk();var offset;for (var j = 0, jj = items.length; j < jj; j++) {if (typeof items[j] === 'string') {- buildTextGeometry(items[j], textChunk);+ buildTextContentItem(items[j]);} else {- var val = items[j] / 1000;- if (!textState.font.vertical) {- offset = -val * textState.fontSize * textState.textHScale *- textState.textMatrix[0];- textState.translateTextMatrix(offset, 0);- textChunk.width += offset;+ ensureTextContentItem();++ // PDF Specification 5.3.2 states:+ // The number is expressed in thousandths of a unit of text+ // space.+ // This amount is subtracted from the current horizontal or+ // vertical coordinate, depending on the writing mode.+ // In the default coordinate system, a positive adjustment+ // has the effect of moving the next glyph painted either to+ // the left or down by the given amount.+ advance = items[j] * textState.fontSize / 1000;+ var breakTextRun = false;+ if (textState.font.vertical) {+ offset = advance *+ (textState.textHScale * textState.textMatrix[2] ++ textState.textMatrix[3]);+ textState.translateTextMatrix(0, advance);+ breakTextRun = textContentItem.textRunBreakAllowed &&+ advance > textContentItem.fakeMultiSpaceMax;+ if (!breakTextRun) {+ // Value needs to be added to height to paint down.+ textContentItem.height += offset;+ }} else {- offset = -val * textState.fontSize *- textState.textMatrix[3];- textState.translateTextMatrix(0, offset);- textChunk.height += offset;- }- if (items[j] < 0 && textState.font.spaceWidth > 0) {- var fakeSpaces = -items[j] / textState.font.spaceWidth;- if (fakeSpaces > MULTI_SPACE_FACTOR) {- fakeSpaces = Math.round(fakeSpaces);- while (fakeSpaces--) {- textChunk.str.push(' ');- }- } else if (fakeSpaces > SPACE_FACTOR) {- textChunk.str.push(' ');+ advance = -advance;+ offset = advance * (+ textState.textHScale * textState.textMatrix[0] ++ textState.textMatrix[1]);+ textState.translateTextMatrix(advance, 0);+ breakTextRun = textContentItem.textRunBreakAllowed &&+ advance > textContentItem.fakeMultiSpaceMax;+ if (!breakTextRun) {+ // Value needs to be subtracted from width to paint left.+ textContentItem.width += offset;}}+ if (breakTextRun) {+ flushTextContentItem();+ } else if (advance > 0) {+ addFakeSpaces(advance, textContentItem.str);+ }}}- bidiTexts.push(runBidi(textChunk));break;case OPS.showText:- bidiTexts.push(runBidi(buildTextGeometry(args[0])));+ buildTextContentItem(args[0]);break;case OPS.nextLineShowText:+ flushTextContentItem();textState.carriageReturn();- bidiTexts.push(runBidi(buildTextGeometry(args[0])));+ buildTextContentItem(args[0]);break;case OPS.nextLineSetSpacingShowText:+ flushTextContentItem();textState.wordSpacing = args[0];textState.charSpacing = args[1];textState.carriageReturn();- bidiTexts.push(runBidi(buildTextGeometry(args[2])));+ buildTextContentItem(args[2]);break;case OPS.paintXObject:+ flushTextContentItem();if (args[0].code) {break;}@@ -11906,7 +12132,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {var name = args[0].name;if (xobjsCache.key === name) {if (xobjsCache.texts) {- Util.appendToArray(bidiTexts, xobjsCache.texts.items);+ Util.appendToArray(textContent.items, xobjsCache.texts.items);Util.extendObj(textContent.styles, xobjsCache.texts.styles);}break;@@ -11934,10 +12160,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {stateManager.transform(matrix);}- return self.getTextContent(xobj,+ return self.getTextContent(xobj, task,xobj.dict.get('Resources') || resources, stateManager).then(function (formTextContent) {- Util.appendToArray(bidiTexts, formTextContent.items);+ Util.appendToArray(textContent.items, formTextContent.items);Util.extendObj(textContent.styles, formTextContent.styles);stateManager.restore();@@ -11947,6 +12173,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {next(resolve, reject);}, reject);case OPS.setGState:+ flushTextContentItem();var dictName = args[0];var extGState = resources.get('ExtGState');@@ -11974,9 +12201,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {if (stop) {deferred.then(function () {next(resolve, reject);- });+ }, reject);return;}+ flushTextContentItem();resolve(textContent);});},@@ -12093,11 +12321,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {if (cmap instanceof IdentityCMap) {return new IdentityToUnicodeMap(0, 0xFFFF);}- cmap = cmap.getMap();+ var map = new Array(cmap.length);// Convert UTF-16BE// NOTE: cmap can be a sparse array, so use forEach instead of for(;;)// to iterate over all keys.- cmap.forEach(function(token, i) {+ cmap.forEach(function(charCode, token) {var str = [];for (var k = 0; k < token.length; k += 2) {var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);@@ -12109,9 +12337,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);}- cmap[i] = String.fromCharCode.apply(String, str);+ map[charCode] = String.fromCharCode.apply(String, str);});- return new ToUnicodeMap(cmap);+ return new ToUnicodeMap(map);}return null;},@@ -12539,7 +12767,7 @@ var TranslatedFont = (function TranslatedFontClosure() {]);this.sent = true;},- loadType3Data: function (evaluator, resources, parentOperatorList) {+ loadType3Data: function (evaluator, resources, parentOperatorList, task) {assert(this.font.isType3Font);if (this.type3Loaded) {@@ -12556,7 +12784,7 @@ var TranslatedFont = (function TranslatedFontClosure() {loadCharProcsPromise = loadCharProcsPromise.then(function (key) {var glyphStream = charProcs[key];var operatorList = new OperatorList();- return evaluator.getOperatorList(glyphStream, fontResources,+ return evaluator.getOperatorList(glyphStream, task, fontResources,operatorList).then(function () {charProcOperatorList[key] = operatorList.getIR();@@ -12606,6 +12834,7 @@ var OperatorList = (function OperatorListClosure() {this.fnArray = [];this.argsArray = [];this.dependencies = {};+ this._totalLength = 0;this.pageIndex = pageIndex;this.intent = intent;}@@ -12615,6 +12844,14 @@ var OperatorList = (function OperatorListClosure() {return this.argsArray.length;},+ /**+ * @returns {number} The total length of the entire operator list,+ * since `this.length === 0` after flushing.+ */+ get totalLength() {+ return (this._totalLength + this.length);+ },+addOp: function(fn, args) {this.fnArray.push(fn);this.argsArray.push(args);@@ -12663,12 +12900,15 @@ var OperatorList = (function OperatorListClosure() {new QueueOptimizer().optimize(this);}var transfers = getTransfers(this);+ var length = this.length;+ this._totalLength += length;+this.messageHandler.send('RenderPageChunk', {operatorList: {fnArray: this.fnArray,argsArray: this.argsArray,lastChunk: lastChunk,- length: this.length+ length: length},pageIndex: this.pageIndex,intent: this.intent@@ -13706,6 +13946,10 @@ var CMap = (function CMapClosure() {out.length = 1;},+ get length() {+ return this._map.length;+ },+get isIdentityCMap() {if (!(this.name === 'Identity-H' || this.name === 'Identity-V')) {return false;@@ -13782,6 +14026,10 @@ var IdentityCMap = (function IdentityCMapClosure() {readCharCode: CMap.prototype.readCharCode,+ get length() {+ return 0x10000;+ },+get isIdentityCMap() {error('should not access .isIdentityCMap');}@@ -16536,23 +16784,26 @@ function getFontType(type, subtype) {}var Glyph = (function GlyphClosure() {- function Glyph(fontChar, unicode, accent, width, vmetric, operatorListId) {+ function Glyph(fontChar, unicode, accent, width, vmetric, operatorListId,+ isSpace) {this.fontChar = fontChar;this.unicode = unicode;this.accent = accent;this.width = width;this.vmetric = vmetric;this.operatorListId = operatorListId;+ this.isSpace = isSpace;}- Glyph.prototype.matchesForCache =- function(fontChar, unicode, accent, width, vmetric, operatorListId) {+ Glyph.prototype.matchesForCache = function(fontChar, unicode, accent, width,+ vmetric, operatorListId, isSpace) {return this.fontChar === fontChar &&this.unicode === unicode &&this.accent === accent &&this.width === width &&this.vmetric === vmetric &&- this.operatorListId === operatorListId;+ this.operatorListId === operatorListId &&+ this.isSpace === isSpace;};return Glyph;@@ -17588,7 +17839,16 @@ var Font = (function FontClosure() {* Read the appropriate subtable from the cmap according to 9.6.6.4 from* PDF spec*/- function readCmapTable(cmap, font, isSymbolicFont) {+ function readCmapTable(cmap, font, isSymbolicFont, hasEncoding) {+ if (!cmap) {+ warn('No cmap table available.');+ return {+ platformId: -1,+ encodingId: -1,+ mappings: [],+ hasShortCmap: false+ };+ }var segment;var start = (font.start ? font.start : 0) + cmap.offset;font.pos = start;@@ -17619,7 +17879,7 @@ var Font = (function FontClosure() {// Continue the loop since there still may be a higher priority// table.} else if (platformId === 3 && encodingId === 1 &&- (!isSymbolicFont || !potentialTable)) {+ ((!isSymbolicFont && hasEncoding) || !potentialTable)) {useTable = true;if (!isSymbolicFont) {canBreak = true;@@ -17756,7 +18016,13 @@ var Font = (function FontClosure() {});}} else {- error('cmap table has unsupported format: ' + format);+ warn('cmap table has unsupported format: ' + format);+ return {+ platformId: -1,+ encodingId: -1,+ mappings: [],+ hasShortCmap: false+ };}// removing duplicate entries@@ -18509,6 +18775,20 @@ var Font = (function FontClosure() {tables.hhea.data[11] = 0xFF;}+ // Extract some more font properties from the OpenType head and+ // hhea tables; yMin and descent value are always negative.+ var metricsOverride = {+ unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),+ yMax: int16(tables.head.data[42], tables.head.data[43]),+ yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,+ ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),+ descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000+ };++ // PDF FontDescriptor metrics lie -- using data from actual font.+ this.ascent = metricsOverride.ascent / metricsOverride.unitsPerEm;+ this.descent = metricsOverride.descent / metricsOverride.unitsPerEm;+// The 'post' table has glyphs names.if (tables.post) {var valid = readPostScriptTable(tables.post, properties, numGlyphs);@@ -18562,13 +18842,14 @@ var Font = (function FontClosure() {} else {// Most of the following logic in this code branch is based on the// 9.6.6.4 of the PDF spec.- var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont);+ var hasEncoding =+ properties.differences.length > 0 || !!properties.baseEncodingName;+ var cmapTable =+ readCmapTable(tables.cmap, font, this.isSymbolicFont, hasEncoding);var cmapPlatformId = cmapTable.platformId;var cmapEncodingId = cmapTable.encodingId;var cmapMappings = cmapTable.mappings;var cmapMappingsLength = cmapMappings.length;- var hasEncoding = properties.differences.length ||- !!properties.baseEncodingName;// The spec seems to imply that if the font is symbolic the encoding// should be ignored, this doesn't appear to work for 'preistabelle.pdf'@@ -18602,9 +18883,10 @@ var Font = (function FontClosure() {if (!glyphName) {continue;}- var unicodeOrCharCode;+ var unicodeOrCharCode, isUnicode = false;if (cmapPlatformId === 3 && cmapEncodingId === 1) {unicodeOrCharCode = GlyphsUnicode[glyphName];+ isUnicode = true;} else if (cmapPlatformId === 1 && cmapEncodingId === 0) {// TODO: the encoding needs to be updated with mac os table.unicodeOrCharCode = Encodings.MacRomanEncoding.indexOf(glyphName);@@ -18612,8 +18894,11 @@ var Font = (function FontClosure() {var found = false;for (i = 0; i < cmapMappingsLength; ++i) {- if (cmapMappings[i].charCode === unicodeOrCharCode &&- hasGlyph(cmapMappings[i].glyphId, unicodeOrCharCode, -1)) {+ if (cmapMappings[i].charCode !== unicodeOrCharCode) {+ continue;+ }+ var code = isUnicode ? charCode : unicodeOrCharCode;+ if (hasGlyph(cmapMappings[i].glyphId, code, -1)) {charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;found = true;break;@@ -18670,20 +18955,10 @@ var Font = (function FontClosure() {};if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {- // extract some more font properties from the OpenType head and- // hhea tables; yMin and descent value are always negative- var override = {- unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),- yMax: int16(tables.head.data[42], tables.head.data[43]),- yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,- ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),- descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000- };-tables['OS/2'] = {tag: 'OS/2',data: createOS2Table(properties, newMapping.charCodeToGlyphId,- override)+ metricsOverride)};}@@ -19056,7 +19331,7 @@ var Font = (function FontClosure() {return width;},- charToGlyph: function Font_charToGlyph(charcode) {+ charToGlyph: function Font_charToGlyph(charcode, isSpace) {var fontCharCode, width, operatorListId;var widthCode = charcode;@@ -19099,9 +19374,9 @@ var Font = (function FontClosure() {var glyph = this.glyphCache[charcode];if (!glyph ||!glyph.matchesForCache(fontChar, unicode, accent, width, vmetric,- operatorListId)) {+ operatorListId, isSpace)) {glyph = new Glyph(fontChar, unicode, accent, width, vmetric,- operatorListId);+ operatorListId, isSpace);this.glyphCache[charcode] = glyph;}return glyph;@@ -19137,22 +19412,16 @@ var Font = (function FontClosure() {charcode = c.charcode;var length = c.length;i += length;- glyph = this.charToGlyph(charcode);+ // Space is char with code 0x20 and length 1 in multiple-byte codes.+ var isSpace = length === 1 && chars.charCodeAt(i - 1) === 0x20;+ glyph = this.charToGlyph(charcode, isSpace);glyphs.push(glyph);- // placing null after each word break charcode (ASCII SPACE)- // Ignore occurences of 0x20 in multiple-byte codes.- if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {- glyphs.push(null);- }}} else {for (i = 0, ii = chars.length; i < ii; ++i) {charcode = chars.charCodeAt(i);- glyph = this.charToGlyph(charcode);+ glyph = this.charToGlyph(charcode, charcode === 0x20);glyphs.push(glyph);- if (charcode === 0x20) {- glyphs.push(null);- }}}@@ -21821,16 +22090,15 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {return 0;}- function compileGlyf(code, js, font) {+ function compileGlyf(code, cmds, font) {function moveTo(x, y) {- js.push('c.moveTo(' + x + ',' + y + ');');+ cmds.push({cmd: 'moveTo', args: [x, y]});}function lineTo(x, y) {- js.push('c.lineTo(' + x + ',' + y + ');');+ cmds.push({cmd: 'lineTo', args: [x, y]});}function quadraticCurveTo(xa, ya, x, y) {- js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +- x + ',' + y + ');');+ cmds.push({cmd: 'quadraticCurveTo', args: [xa, ya, x, y]});}var i = 0;@@ -21876,11 +22144,11 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {}var subglyph = font.glyphs[glyphIndex];if (subglyph) {- js.push('c.save();');- js.push('c.transform(' + scaleX + ',' + scale01 + ',' +- scale10 + ',' + scaleY + ',' + x + ',' + y + ');');- compileGlyf(subglyph, js, font);- js.push('c.restore();');+ cmds.push({cmd: 'save'});+ cmds.push({cmd: 'transform',+ args: [scaleX, scale01, scale10, scaleY, x, y]});+ compileGlyf(subglyph, cmds, font);+ cmds.push({cmd: 'restore'});}} while ((flags & 0x20));} else {@@ -21976,20 +22244,19 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {}}- function compileCharString(code, js, font) {+ function compileCharString(code, cmds, font) {var stack = [];var x = 0, y = 0;var stems = 0;function moveTo(x, y) {- js.push('c.moveTo(' + x + ',' + y + ');');+ cmds.push({cmd: 'moveTo', args: [x, y]});}function lineTo(x, y) {- js.push('c.lineTo(' + x + ',' + y + ');');+ cmds.push({cmd: 'lineTo', args: [x, y]});}function bezierCurveTo(x1, y1, x2, y2, x, y) {- js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +- x + ',' + y + ');');+ cmds.push({cmd: 'bezierCurveTo', args: [x1, y1, x2, y2, x, y]});}function parse(code) {@@ -22118,16 +22385,16 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {var bchar = stack.pop();y = stack.pop();x = stack.pop();- js.push('c.save();');- js.push('c.translate('+ x + ',' + y + ');');+ cmds.push({cmd: 'save'});+ cmds.push({cmd: 'translate', args: [x, y]});var gid = lookupCmap(font.cmap, String.fromCharCode(font.glyphNameMap[Encodings.StandardEncoding[achar]]));- compileCharString(font.glyphs[gid], js, font);- js.push('c.restore();');+ compileCharString(font.glyphs[gid], cmds, font);+ cmds.push({cmd: 'restore'});gid = lookupCmap(font.cmap, String.fromCharCode(font.glyphNameMap[Encodings.StandardEncoding[bchar]]));- compileCharString(font.glyphs[gid], js, font);+ compileCharString(font.glyphs[gid], cmds, font);}return;case 18: // hstemhm@@ -22296,16 +22563,16 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {return noop;}- var js = [];- js.push('c.save();');- js.push('c.transform(' + this.fontMatrix.join(',') + ');');- js.push('c.scale(size, -size);');+ var cmds = [];+ cmds.push({cmd: 'save'});+ cmds.push({cmd: 'transform', args: this.fontMatrix.slice()});+ cmds.push({cmd: 'scale', args: ['size', '-size']});- this.compileGlyphImpl(code, js);+ this.compileGlyphImpl(code, cmds);- js.push('c.restore();');+ cmds.push({cmd: 'restore'});- return js.join('\n');+ return cmds;},compileGlyphImpl: function () {@@ -22329,8 +22596,8 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {}Util.inherit(TrueTypeCompiled, CompiledFont, {- compileGlyphImpl: function (code, js) {- compileGlyf(code, js, this);+ compileGlyphImpl: function (code, cmds) {+ compileGlyf(code, cmds, this);}});@@ -22351,8 +22618,8 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {}Util.inherit(Type2Compiled, CompiledFont, {- compileGlyphImpl: function (code, js) {- compileCharString(code, js, this);+ compileGlyphImpl: function (code, cmds) {+ compileCharString(code, cmds, this);}});@@ -26934,7 +27201,12 @@ var PDFImage = (function PDFImageClosure() {this.smask = new PDFImage(xref, res, smask, false);} else if (mask) {if (isStream(mask)) {- this.mask = new PDFImage(xref, res, mask, false, null, null, true);+ var maskDict = mask.dict, imageMask = maskDict.get('ImageMask', 'IM');+ if (!imageMask) {+ warn('Ignoring /Mask in image without /ImageMask.');+ } else {+ this.mask = new PDFImage(xref, res, mask, false, null, null, true);+ }} else {// Color key mask (just an array).this.mask = mask;@@ -27356,7 +27628,10 @@ var PDFImage = (function PDFImageClosure() {}return imgData;}- if (this.image instanceof JpegStream && !this.smask && !this.mask) {+ if (this.image instanceof JpegStream && !this.smask && !this.mask &&+ (this.colorSpace.name === 'DeviceGray' ||+ this.colorSpace.name === 'DeviceRGB' ||+ this.colorSpace.name === 'DeviceCMYK')) {imgData.kind = ImageKind.RGB_24BPP;imgData.data = this.getImageBytes(originalHeight * rowBytes,drawWidth, drawHeight, true);@@ -30441,6 +30716,9 @@ var Parser = (function ParserClosure() {this.shift();return true;} catch (e) {+ if (e instanceof MissingDataException) {+ throw e;+ }// Upon failure, the caller should reset this.lexer.pos to a known good// state and call this.shift() twice to reset the buffers.return false;@@ -30721,7 +30999,7 @@ var Parser = (function ParserClosure() {var stream = lexer.stream;// Parse dictionary.- var dict = new Dict(null);+ var dict = new Dict(this.xref);while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {if (!isName(this.buf1)) {error('Dictionary key must be a name object');@@ -30735,7 +31013,7 @@ var Parser = (function ParserClosure() {}// Extract the name of the first (i.e. the current) image filter.- var filter = this.fetchIfRef(dict.get('Filter', 'F')), filterName;+ var filter = dict.get('Filter', 'F'), filterName;if (isName(filter)) {filterName = filter.name;} else if (isArray(filter) && isName(filter[0])) {@@ -30796,10 +31074,6 @@ var Parser = (function ParserClosure() {return imageStream;},- fetchIfRef: function Parser_fetchIfRef(obj) {- // not relying on the xref.fetchIfRef -- xref might not be set- return (isRef(obj) ? this.xref.fetch(obj) : obj);- },makeStream: function Parser_makeStream(dict, cipherTransform) {var lexer = this.lexer;var stream = lexer.stream;@@ -30809,7 +31083,7 @@ var Parser = (function ParserClosure() {var pos = stream.pos - 1;// get length- var length = this.fetchIfRef(dict.get('Length'));+ var length = dict.get('Length');if (!isInt(length)) {info('Bad ' + length + ' attribute in stream');length = 0;@@ -30879,8 +31153,8 @@ var Parser = (function ParserClosure() {return stream;},filter: function Parser_filter(stream, dict, length) {- var filter = this.fetchIfRef(dict.get('Filter', 'F'));- var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));+ var filter = dict.get('Filter', 'F');+ var params = dict.get('DecodeParms', 'DP');if (isName(filter)) {return this.makeFilter(stream, filter.name, length, params);}@@ -30907,12 +31181,13 @@ var Parser = (function ParserClosure() {return stream;},makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {- if (stream.dict.get('Length') === 0) {+ if (stream.dict.get('Length') === 0 && !maybeLength) {+ warn('Empty "' + name + '" stream.');return new NullStream(stream);}try {- if (params) {- params = this.fetchIfRef(params);+ if (params && this.xref) {+ params = this.xref.fetchIfRef(params);}var xrefStreamStats = this.xref.stats.streamTypes;if (name === 'FlateDecode' || name === 'Fl') {@@ -34099,9 +34374,58 @@ var NullStream = (function NullStreamClosure() {})();+var WorkerTask = (function WorkerTaskClosure() {+ function WorkerTask(name) {+ this.name = name;+ this.terminated = false;+ this._capability = createPromiseCapability();+ }++ WorkerTask.prototype = {+ get finished() {+ return this._capability.promise;+ },++ finish: function () {+ this._capability.resolve();+ },++ terminate: function () {+ this.terminated = true;+ },++ ensureNotTerminated: function () {+ if (this.terminated) {+ throw new Error('Worker task was terminated');+ }+ }+ };++ return WorkerTask;+})();+var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {setup: function wphSetup(handler) {var pdfManager;+ var terminated = false;+ var cancelXHRs = null;+ var WorkerTasks = [];++ function ensureNotTerminated() {+ if (terminated) {+ throw new Error('Worker was terminated');+ }+ }++ function startWorkerTask(task) {+ WorkerTasks.push(task);+ }++ function finishWorkerTask(task) {+ task.finish();+ var i = WorkerTasks.indexOf(task);+ WorkerTasks.splice(i, 1);+ }function loadDocument(recoveryMode) {var loadDocumentCapability = createPromiseCapability();@@ -34138,13 +34462,14 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {function getPdfManager(data) {var pdfManagerCapability = createPromiseCapability();+ var pdfManager;var source = data.source;var disableRange = data.disableRange;if (source.data) {try {pdfManager = new LocalPdfManager(source.data, source.password);- pdfManagerCapability.resolve();+ pdfManagerCapability.resolve(pdfManager);} catch (ex) {pdfManagerCapability.reject(ex);}@@ -34152,7 +34477,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {} else if (source.chunkedViewerLoading) {try {pdfManager = new NetworkPdfManager(source, handler);- pdfManagerCapability.resolve();+ pdfManagerCapability.resolve(pdfManager);} catch (ex) {pdfManagerCapability.reject(ex);}@@ -34187,7 +34512,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {return;}source.length = length;- if (length <= 2 * RANGE_CHUNK_SIZE) {+ if (length <= 2 * source.rangeChunkSize) {// The file size is smaller than the size of two chunks, so it does// not make any sense to abort the request and retry with a range// request.@@ -34213,6 +34538,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {} catch (ex) {pdfManagerCapability.reject(ex);}+ cancelXHRs = null;},onProgressiveData: source.disableStream ? null :@@ -34253,15 +34579,16 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {// the data is array, instantiating directly from ittry {pdfManager = new LocalPdfManager(pdfFile, source.password);- pdfManagerCapability.resolve();+ pdfManagerCapability.resolve(pdfManager);} catch (ex) {pdfManagerCapability.reject(ex);}+ cancelXHRs = null;},onError: function onError(status) {var exception;- if (status === 404) {+ if (status === 404 || status === 0 && /^file:/.test(source.url)) {exception = new MissingPDFException('Missing PDF "' +source.url + '".');handler.send('MissingPDF', exception);@@ -34271,6 +34598,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {') while retrieving PDF "' + source.url + '".', status);handler.send('UnexpectedResponse', exception);}+ cancelXHRs = null;},onProgress: function onProgress(evt) {@@ -34281,6 +34609,10 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {}});+ cancelXHRs = function () {+ networkManager.abortRequest(fullRequestXhrId);+ };+return pdfManagerCapability.promise;}@@ -34313,8 +34645,8 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {});handler.on('GetDocRequest', function wphSetupDoc(data) {-var onSuccess = function(doc) {+ ensureNotTerminated();handler.send('GetDoc', { pdfInfo: doc });};@@ -34337,6 +34669,8 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {}};+ ensureNotTerminated();+PDFJS.maxImageSize = data.maxImageSize === undefined ?-1 : data.maxImageSize;PDFJS.disableFontFace = data.disableFontFace;@@ -34346,13 +34680,26 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {null : data.cMapUrl;PDFJS.cMapPacked = data.cMapPacked === true;- getPdfManager(data).then(function () {+ getPdfManager(data).then(function (newPdfManager) {+ if (terminated) {+ // We were in a process of setting up the manager, but it got+ // terminated in the middle.+ newPdfManager.terminate();+ throw new Error('Worker was terminated');+ }++ pdfManager = newPdfManager;+handler.send('PDFManagerReady', null);pdfManager.onLoadedStream().then(function(stream) {handler.send('DataLoaded', { length: stream.bytes.byteLength });});}).then(function pdfManagerReady() {+ ensureNotTerminated();+loadDocument(false).then(onSuccess, function loadFailure(ex) {+ ensureNotTerminated();+// Try again with recoveryMode == trueif (!(ex instanceof XRefParseException)) {if (ex instanceof PasswordException) {@@ -34367,6 +34714,8 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {pdfManager.requestLoadedStream();pdfManager.onLoadedStream().then(function() {+ ensureNotTerminated();+loadDocument(true).then(onSuccess, onFailure);});}, onFailure);@@ -34457,17 +34806,25 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {});handler.on('RenderPageRequest', function wphSetupRenderPage(data) {- pdfManager.getPage(data.pageIndex).then(function(page) {+ var pageIndex = data.pageIndex;+ pdfManager.getPage(pageIndex).then(function(page) {+ var task = new WorkerTask('RenderPageRequest: page ' + pageIndex);+ startWorkerTask(task);- var pageNum = data.pageIndex + 1;+ var pageNum = pageIndex + 1;var start = Date.now();// Pre compile the pdf page and fetch the fonts/images.- page.getOperatorList(handler, data.intent).then(function(operatorList) {+ page.getOperatorList(handler, task, data.intent).then(+ function(operatorList) {+ finishWorkerTask(task);info('page=' + pageNum + ' - getOperatorList: time=' +- (Date.now() - start) + 'ms, len=' + operatorList.fnArray.length);-+ (Date.now() - start) + 'ms, len=' + operatorList.totalLength);}, function(e) {+ finishWorkerTask(task);+ if (task.terminated) {+ return; // ignoring errors from the terminated thread+ }var minimumStackMessage ='worker.js: while trying to getPage() and getOperatorList()';@@ -34502,13 +34859,23 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {}, this);handler.on('GetTextContent', function wphExtractText(data) {- return pdfManager.getPage(data.pageIndex).then(function(page) {- var pageNum = data.pageIndex + 1;+ var pageIndex = data.pageIndex;+ return pdfManager.getPage(pageIndex).then(function(page) {+ var task = new WorkerTask('GetTextContent: page ' + pageIndex);+ startWorkerTask(task);+ var pageNum = pageIndex + 1;var start = Date.now();- return page.extractTextContent().then(function(textContent) {+ return page.extractTextContent(task).then(function(textContent) {+ finishWorkerTask(task);info('text indexing: page=' + pageNum + ' - time=' +(Date.now() - start) + 'ms');return textContent;+ }, function (reason) {+ finishWorkerTask(task);+ if (task.terminated) {+ return; // ignoring errors from the terminated thread+ }+ throw reason;});});});@@ -34518,7 +34885,22 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {});handler.on('Terminate', function wphTerminate(data) {- pdfManager.terminate();+ terminated = true;+ if (pdfManager) {+ pdfManager.terminate();+ pdfManager = null;+ }+ if (cancelXHRs) {+ cancelXHRs();+ }++ var waitOn = [];+ WorkerTasks.forEach(function (task) {+ waitOn.push(task.finished);+ task.terminate();+ });++ return Promise.all(waitOn).then(function () {});});}};@@ -39409,14 +39791,13 @@ var bidi = PDFJS.bidi = (function bidiClosure() {// don't mirror as characters are already mirrored in the pdf// Finally, return string- var result = '';for (i = 0, ii = chars.length; i < ii; ++i) {var ch = chars[i];- if (ch !== '<' && ch !== '>') {- result += ch;+ if (ch === '<' || ch === '>') {+ chars[i] = '';}}- return createBidiText(result, isLTR);+ return createBidiText(chars.join(''), isLTR);}return bidi;@@ -39570,10 +39951,8 @@ if (!PDFJS.workerSrc && typeof document !== 'undefined') {// workerSrc is not set -- using last script url to define default locationPDFJS.workerSrc = (function () {'use strict';- var scriptTagContainer = document.body ||- document.getElementsByTagName('head')[0];- var pdfjsSrc = scriptTagContainer.lastChild.src;- return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');+ var pdfJsSrc = document.currentScript.src;+ return pdfJsSrc && pdfJsSrc.replace(/\.js$/i, '.worker.js');})();}diff --git a/data/libs/pdfjs/web/compatibility.js b/data/libs/pdfjs/web/compatibility.jsindex 06f54bff0..594c20bcb 100644--- a/data/libs/pdfjs/web/compatibility.js+++ b/data/libs/pdfjs/web/compatibility.js@@ -522,9 +522,9 @@ if (typeof PDFJS === 'undefined') {if (polyfill) {var contextPrototype = window.CanvasRenderingContext2D.prototype;- contextPrototype._createImageData = contextPrototype.createImageData;+ var createImageData = contextPrototype.createImageData;contextPrototype.createImageData = function(w, h) {- var imageData = this._createImageData(w, h);+ var imageData = createImageData.call(this, w, h);imageData.data.set = function(arr) {for (var i = 0, ii = this.length; i < ii; i++) {this[i] = arr[i];@@ -532,6 +532,8 @@ if (typeof PDFJS === 'undefined') {};return imageData;};+ // this closure will be kept referenced, so clear its vars+ contextPrototype = null;}}})();@@ -575,3 +577,19 @@ if (typeof PDFJS === 'undefined') {PDFJS.disableFullscreen = true;}})();++// Provides document.currentScript support+// Support: IE, Chrome<29.+(function checkCurrentScript() {+ if ('currentScript' in document) {+ return;+ }+ Object.defineProperty(document, 'currentScript', {+ get: function () {+ var scripts = document.getElementsByTagName('script');+ return scripts[scripts.length - 1];+ },+ enumerable: true,+ configurable: true+ });+})();diff --git a/data/libs/pdfjs/web/locale/ach/viewer.properties b/data/libs/pdfjs/web/locale/ach/viewer.propertiesindex 89b8180ba..51d0a3806 100644--- a/data/libs/pdfjs/web/locale/ach/viewer.properties+++ b/data/libs/pdfjs/web/locale/ach/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Jami me gin acoya…document_properties_label=Jami me gin acoya…document_properties_file_name=Nying pwail:document_properties_file_size=Dit pa pwail:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Wiye:document_properties_author=Ngat mucoyo:@@ -75,6 +79,8 @@ document_properties_subject=Lok:document_properties_keywords=Lok mapire tek:document_properties_creation_date=Nino dwe me cwec:document_properties_modification_date=Nino dwe me yub:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Lacwec:document_properties_producer=Layub PDF:diff --git a/data/libs/pdfjs/web/locale/af/viewer.properties b/data/libs/pdfjs/web/locale/af/viewer.propertiesindex d866b4d3f..98e1d6b1b 100644--- a/data/libs/pdfjs/web/locale/af/viewer.properties+++ b/data/libs/pdfjs/web/locale/af/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Dokumenteienskappe…document_properties_label=Dokumenteienskappe…document_properties_file_name=Lêernaam:document_properties_file_size=Lêergrootte:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} kG ({{size_b}} grepe)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MG ({{size_b}} grepe)document_properties_title=Titel:document_properties_author=Outeur:@@ -75,6 +79,8 @@ document_properties_subject=Onderwerp:document_properties_keywords=Sleutelwoorde:document_properties_creation_date=Skeppingsdatum:document_properties_modification_date=Wysigingsdatum:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Skepper:document_properties_producer=PDF-vervaardiger:diff --git a/data/libs/pdfjs/web/locale/ak/viewer.properties b/data/libs/pdfjs/web/locale/ak/viewer.propertiesindex 883c2ab8e..90b8bf44e 100644--- a/data/libs/pdfjs/web/locale/ak/viewer.properties+++ b/data/libs/pdfjs/web/locale/ak/viewer.properties@@ -45,7 +45,13 @@ bookmark_label=Seisei nhwɛ# Document properties dialog box+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_title=Ti asɛm:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are@@ -102,6 +108,8 @@ page_scale_width=Krataafa tɛtrɛtɛpage_scale_fit=Krataafa ehimtwapage_scale_auto=Zuum otomatikpage_scale_actual=Kɛseyɛ ankasa+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=Mfomsodiff --git a/data/libs/pdfjs/web/locale/an/viewer.properties b/data/libs/pdfjs/web/locale/an/viewer.propertiesindex d9b7f66ac..a2ccb9d47 100644--- a/data/libs/pdfjs/web/locale/an/viewer.properties+++ b/data/libs/pdfjs/web/locale/an/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Propiedatz d'o documento...document_properties_label=Propiedatz d'o documento...document_properties_file_name=Nombre de fichero:document_properties_file_size=Grandaria d'o fichero:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Titol:document_properties_author=Autor:@@ -75,6 +79,8 @@ document_properties_subject=Afer:document_properties_keywords=Parolas clau:document_properties_creation_date=Calendata de creyación:document_properties_modification_date=Calendata de modificación:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Creyador:document_properties_producer=Creyador de PDF:diff --git a/data/libs/pdfjs/web/locale/ar/viewer.properties b/data/libs/pdfjs/web/locale/ar/viewer.propertiesindex d114bbb1a..154e48bb2 100644--- a/data/libs/pdfjs/web/locale/ar/viewer.properties+++ b/data/libs/pdfjs/web/locale/ar/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=خصائص المستند…document_properties_label=خصائص المستند…document_properties_file_name=اسم الملف:document_properties_file_size=حجم الملف:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} ك.بايت ({{size_b}} بايت)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} م.بايت ({{size_b}} بايت)document_properties_title=العنوان:document_properties_author=المؤلف:@@ -75,6 +79,8 @@ document_properties_subject=الموضوع:document_properties_keywords=الكلمات الأساسية:document_properties_creation_date=تاريخ الإنشاء:document_properties_modification_date=تاريخ التعديل:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}، {{time}}document_properties_creator=المنشئ:document_properties_producer=منتج PDF:diff --git a/data/libs/pdfjs/web/locale/as/viewer.properties b/data/libs/pdfjs/web/locale/as/viewer.propertiesindex a0d637f83..2e0c18c36 100644--- a/data/libs/pdfjs/web/locale/as/viewer.properties+++ b/data/libs/pdfjs/web/locale/as/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=দস্তাবেজৰ বৈশিষ্ট্document_properties_label=দস্তাবেজৰ বৈশিষ্ট্যসমূহ…document_properties_file_name=ফাইল নাম:document_properties_file_size=ফাইলৰ আকাৰ:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=শীৰ্ষক:document_properties_author=লেখক:@@ -75,6 +79,8 @@ document_properties_subject=বিষয়:document_properties_keywords=কিৱাৰ্ডসমূহ:document_properties_creation_date=সৃষ্টিৰ তাৰিখ:document_properties_modification_date=পৰিবৰ্তনৰ তাৰিখ:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=সৃষ্টিকৰ্তা:document_properties_producer=PDF উৎপাদক:@@ -140,6 +146,8 @@ page_scale_width=পৃষ্ঠাৰ প্ৰস্থpage_scale_fit=পৃষ্ঠা খাপpage_scale_auto=স্বচালিত জুমpage_scale_actual=প্ৰকৃত আকাৰ+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=ত্ৰুটিdiff --git a/data/libs/pdfjs/web/locale/az/viewer.properties b/data/libs/pdfjs/web/locale/az/viewer.propertiesindex ef77c6449..fcd3377bc 100644--- a/data/libs/pdfjs/web/locale/az/viewer.properties+++ b/data/libs/pdfjs/web/locale/az/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Sənəd xüsusiyyətləri…document_properties_label=Sənəd xüsusiyyətləri…document_properties_file_name=Fayl adı:document_properties_file_size=Fayl ölçüsü:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bayt)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bayt)document_properties_title=Başlık:document_properties_author=Müəllif:@@ -75,6 +79,8 @@ document_properties_subject=Mövzu:document_properties_keywords=Açar sözlər:document_properties_creation_date=Yaradılış Tarixi :document_properties_modification_date=Dəyişdirilmə Tarixi :+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Yaradan:document_properties_producer=PDF yaradıcısı:diff --git a/data/libs/pdfjs/web/locale/bg/viewer.properties b/data/libs/pdfjs/web/locale/bg/viewer.propertiesindex 80059f562..f91fc377c 100644--- a/data/libs/pdfjs/web/locale/bg/viewer.properties+++ b/data/libs/pdfjs/web/locale/bg/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Свойства на документа…document_properties_label=Свойства на документа…document_properties_file_name=Име на файл:document_properties_file_size=Големина на файл:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} КБ ({{size_b}} байта)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} МБ ({{size_b}} байта)document_properties_title=Заглавие:document_properties_author=Автор:@@ -75,6 +79,8 @@ document_properties_subject=Тема:document_properties_keywords=Ключови думи:document_properties_creation_date=Дата на създаване:document_properties_modification_date=Дата на промяна:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Създател:document_properties_producer=PDF произведен от:@@ -147,7 +153,7 @@ page_scale_percent={{scale}}%# Loading indicator messagesloading_error_indicator=Грешкаloading_error=Получи се грешка при зареждане на PDF-а.-invalid_file_error=Невалиден или повреден PDF файл+invalid_file_error=Невалиден или повреден PDF файл.missing_file_error=Липсващ PDF файл.unexpected_response_error=Неочакван отговор от сървъра.diff --git a/data/libs/pdfjs/web/locale/bn-BD/viewer.properties b/data/libs/pdfjs/web/locale/bn-BD/viewer.propertiesindex ab9daf21f..af37920f2 100644--- a/data/libs/pdfjs/web/locale/bn-BD/viewer.properties+++ b/data/libs/pdfjs/web/locale/bn-BD/viewer.properties@@ -60,9 +60,33 @@ page_rotate_ccw_label=ঘড়ির কাঁটার বিপরীতেhand_tool_enable.title=হ্যান্ড টুল সক্রিয় করুনhand_tool_enable_label=হ্যান্ড টুল সক্রিয় করুনhand_tool_disable.title=হ্যান্ড টুল নিস্ক্রিয় করুন+hand_tool_disable_label=হ্যান্ড টুল নিস্ক্রিয় করুন# Document properties dialog box+document_properties.title=নথি বৈশিষ্ট্য…+document_properties_label=নথি বৈশিষ্ট্য…+document_properties_file_name=ফাইলের নাম:+document_properties_file_size=ফাইলের আকার:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+document_properties_kb={{size_kb}} কেবি ({{size_b}} বাইট)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.+document_properties_mb={{size_mb}} এমবি ({{size_b}} বাইট)document_properties_title=শিরোনাম:+document_properties_author=লেখক:+document_properties_subject=বিষয়:+document_properties_keywords=কীওয়ার্ড:+document_properties_creation_date=তৈরির তারিখ:+document_properties_modification_date=পরিবর্তনের তারিখ:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.+document_properties_date_string={{date}}, {{time}}+document_properties_creator=প্রস্তুতকারক:+document_properties_producer=পিডিএফ প্রস্তুতকারক:+document_properties_version=পিডিএফ সংষ্করণ:+document_properties_page_count=মোট পাতা:+document_properties_close=বন্ধ# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are@@ -71,6 +95,8 @@ toggle_sidebar.title=সাইডবার টগল করুনtoggle_sidebar_label=সাইডবার টগল করুনoutline.title=নথির রূপরেখা প্রদর্শন করুনoutline_label=নথির রূপরেখা+attachments.title=সংযুক্তি দেখাও+attachments_label=সংযুক্তিthumbs.title=থাম্বনেইল সমূহ প্রদর্শন করুনthumbs_label=থাম্বনেইল সমূহfindbar.title=নথির মধ্যে খুঁজুন@@ -99,6 +125,7 @@ find_not_found=বাক্যাংশ পাওয়া যায়নি# Error panel labelserror_more_info=আরও তথ্যerror_less_info=কম তথ্য+error_close=বন্ধ# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be# replaced by the PDF.JS version and build ID.error_version_info=PDF.js v{{version}} (build: {{build}})@@ -121,12 +148,14 @@ page_scale_auto=স্বয়ংক্রিয় জুমpage_scale_actual=প্রকৃত আকার# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a# numerical scale value.+page_scale_percent={{scale}}%# Loading indicator messagesloading_error_indicator=ত্রুটিloading_error=পিডিএফ লোড করার সময় ত্রুটি দেখা দিয়েছে।invalid_file_error=অকার্যকর অথবা ক্ষতিগ্রস্ত পিডিএফ ফাইল।missing_file_error=পিডিএফ ফাইল পাওয়া যাচ্ছে না।+unexpected_response_error=অপ্রত্যাশীত সার্ভার প্রতিক্রিয়া।# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.# "{{type}}" will be replaced with an annotation type from a list defined indiff --git a/data/libs/pdfjs/web/locale/bn-IN/viewer.properties b/data/libs/pdfjs/web/locale/bn-IN/viewer.propertiesindex 84391bf17..743610a12 100644--- a/data/libs/pdfjs/web/locale/bn-IN/viewer.properties+++ b/data/libs/pdfjs/web/locale/bn-IN/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=নথির বৈশিষ্ট্য…document_properties_label=নথির বৈশিষ্ট্য…document_properties_file_name=ফাইলের নাম:document_properties_file_size=ফাইলের মাপ:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} মেগাবাইট ({{size_b}} bytes)document_properties_title=শিরোনাম:document_properties_author=লেখক:@@ -75,6 +79,8 @@ document_properties_subject=বিষয়:document_properties_keywords=নির্দেশক শব্দ:document_properties_creation_date=নির্মাণের তারিখ:document_properties_modification_date=পরিবর্তনের তারিখ:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=নির্মাতা:document_properties_producer=PDF নির্মাতা:diff --git a/data/libs/pdfjs/web/locale/br/viewer.properties b/data/libs/pdfjs/web/locale/br/viewer.propertiesindex 7f7926c29..89c6f85b1 100644--- a/data/libs/pdfjs/web/locale/br/viewer.properties+++ b/data/libs/pdfjs/web/locale/br/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Perzhioù an teul…document_properties_label=Perzhioù an teul…document_properties_file_name=Anv restr :document_properties_file_size=Ment ar restr :+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} Ke ({{size_b}} eizhbit)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} Me ({{size_b}} eizhbit)document_properties_title=Titl :document_properties_author=Aozer :@@ -75,6 +79,8 @@ document_properties_subject=Danvez :document_properties_keywords=Gerioù-alc'hwez :document_properties_creation_date=Deiziad krouiñ :document_properties_modification_date=Deiziad kemmañ :+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Krouer :document_properties_producer=Kenderc'her PDF :diff --git a/data/libs/pdfjs/web/locale/bs/viewer.properties b/data/libs/pdfjs/web/locale/bs/viewer.propertiesindex c0f5cda6c..575ffbfeb 100644--- a/data/libs/pdfjs/web/locale/bs/viewer.properties+++ b/data/libs/pdfjs/web/locale/bs/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Svojstva dokumenta...document_properties_label=Svojstva dokumenta...document_properties_file_name=Naziv fajla:document_properties_file_size=Veličina fajla:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bajta)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bajta)document_properties_title=Naslov:document_properties_author=Autor:@@ -75,6 +79,8 @@ document_properties_subject=Predmet:document_properties_keywords=Ključne riječi:document_properties_creation_date=Datum kreiranja:document_properties_modification_date=Datum promjene:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Kreator:document_properties_producer=PDF stvaratelj:diff --git a/data/libs/pdfjs/web/locale/ca/viewer.properties b/data/libs/pdfjs/web/locale/ca/viewer.propertiesindex 93b3b7697..8d63096e4 100644--- a/data/libs/pdfjs/web/locale/ca/viewer.properties+++ b/data/libs/pdfjs/web/locale/ca/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Propietats del document…document_properties_label=Propietats del document…document_properties_file_name=Nom del fitxer:document_properties_file_size=Mida del fitxer:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Títol:document_properties_author=Autor:@@ -75,6 +79,8 @@ document_properties_subject=Assumpte:document_properties_keywords=Paraules clau:document_properties_creation_date=Data de creació:document_properties_modification_date=Data de modificació:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Creador:document_properties_producer=Generador de PDF:diff --git a/data/libs/pdfjs/web/locale/cy/viewer.properties b/data/libs/pdfjs/web/locale/cy/viewer.propertiesindex 3ba7ceffb..26b44958b 100644--- a/data/libs/pdfjs/web/locale/cy/viewer.properties+++ b/data/libs/pdfjs/web/locale/cy/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Priodweddau Dogfen…document_properties_label=Priodweddau Dogfen…document_properties_file_name=Enw ffeil:document_properties_file_size=Maint ffeil:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} beit)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} beit)document_properties_title=Teitl:document_properties_author=Awdur:@@ -75,6 +79,8 @@ document_properties_subject=Pwnc:document_properties_keywords=Allweddair:document_properties_creation_date=Dyddiad Creu:document_properties_modification_date=Dyddiad Addasu:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Crewr:document_properties_producer=Cynhyrchydd PDF:diff --git a/data/libs/pdfjs/web/locale/el/viewer.properties b/data/libs/pdfjs/web/locale/el/viewer.propertiesindex a5d3d1216..df455c759 100644--- a/data/libs/pdfjs/web/locale/el/viewer.properties+++ b/data/libs/pdfjs/web/locale/el/viewer.properties@@ -23,7 +23,7 @@ next_label=Επόμενη# Do not translate "{{pageCount}}", it will be substituted with a number# representing the total number of pages.page_label=Σελίδα:-page_of= {{pageCount}}+page_of=από {{pageCount}}zoom_out.title=Σμίκρυνσηzoom_out_label=Σμίκρυνση@@ -42,45 +42,51 @@ bookmark.title=Τρέχουσα προβολή (αντίγραφο ή άνοιγbookmark_label=Τρέχουσα προβολή# Secondary toolbar and context menu-tools.title=Tools-tools_label=Tools-first_page.title=Go to First Page+tools.title=Εργαλεία+tools_label=Εργαλεία+first_page.title=Μετάβαση στην πρώτη σελίδαfirst_page.label=Μετάβαση στην πρώτη σελίδα-first_page_label=Go to First Page-last_page.title=Go to Last Page+first_page_label=Μετάβαση στην πρώτη σελίδα+last_page.title=Μετάβαση στη τελευταία σελίδαlast_page.label=Μετάβαση στη τελευταία σελίδα-last_page_label=Go to Last Page-page_rotate_cw.title=Rotate Clockwise+last_page_label=Μετάβαση στη τελευταία σελίδα+page_rotate_cw.title=Δεξιόστροφη περιστροφήpage_rotate_cw.label=Δεξιόστροφη περιστροφή-page_rotate_cw_label=Rotate Clockwise-page_rotate_ccw.title=Rotate Counterclockwise+page_rotate_cw_label=Δεξιόστροφη περιστροφή+page_rotate_ccw.title=Αριστερόστροφη περιστροφήpage_rotate_ccw.label=Αριστερόστροφη περιστροφή-page_rotate_ccw_label=Rotate Counterclockwise+page_rotate_ccw_label=Αριστερόστροφη περιστροφή-hand_tool_enable.title=Enable hand tool-hand_tool_enable_label=Enable hand tool-hand_tool_disable.title=Disable hand tool-hand_tool_disable_label=Disable hand tool+hand_tool_enable.title=Ενεργοποίηση εργαλείου χεριού+hand_tool_enable_label=Ενεργοποίηση εργαλείου χεριού+hand_tool_disable.title=Απενεργοποίηση εργαλείου χεριού+hand_tool_disable_label=Απενεργοποίηση εργαλείου χεριού# Document properties dialog box-document_properties.title=Document Properties…-document_properties_label=Document Properties…-document_properties_file_name=File name:-document_properties_file_size=File size:+document_properties.title=Ιδιότητες εγγράφου…+document_properties_label=Ιδιότητες εγγράφου…+document_properties_file_name=Όνομα αρχείου:+document_properties_file_size=Μέγεθος αρχείου:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)-document_properties_title=Title:-document_properties_author=Author:-document_properties_subject=Subject:-document_properties_keywords=Keywords:-document_properties_creation_date=Creation Date:-document_properties_modification_date=Modification Date:+document_properties_title=Τίτλος:+document_properties_author=Συγγραφέας:+document_properties_subject=Θέμα:+document_properties_keywords=Λέξεις κλειδιά:+document_properties_creation_date=Ημερομηνία δημιουργίας:+document_properties_modification_date=Ημερομηνία τροποποίησης:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}-document_properties_creator=Creator:-document_properties_producer=PDF Producer:-document_properties_version=PDF Version:-document_properties_page_count=Page Count:-document_properties_close=Close+document_properties_creator=Δημιουργός:+document_properties_producer=Παραγωγός PDF:+document_properties_version=Έκδοση PDF:+document_properties_page_count=Αριθμός σελίδων:+document_properties_close=Κλείσιμο# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are@@ -89,8 +95,8 @@ toggle_sidebar.title=Εναλλαγή προβολής πλευρικής στήtoggle_sidebar_label=Εναλλαγή προβολής πλευρικής στήληςoutline.title=Προβολή διάρθρωσης κειμένουoutline_label=Διάρθρωση κειμένου-attachments.title=Show Attachments-attachments_label=Attachments+attachments.title=Προβολή συνημμένου+attachments_label=Συνημμέναthumbs.title=Προβολή μικρογραφιώνthumbs_label=Μικρογραφίεςfindbar.title=Εύρεση στο έγγραφο@@ -155,11 +161,11 @@ unexpected_response_error=Unexpected server response.# "{{type}}" will be replaced with an annotation type from a list defined in# the PDF spec (32000-1:2008 Table 169 – Annotation types).# Some common types are e.g.: "Check", "Text", "Comment", "Note"-text_annotation_type.alt=[{{type}} Annotation]-password_label=Enter the password to open this PDF file.-password_invalid=Invalid password. Please try again.-password_ok=OK-password_cancel=Cancel+text_annotation_type.alt=[{{type}} Σχόλιο]+password_label=Εισαγωγή κωδικού για το άνοιγμα του PDF αρχείου.+password_invalid=Μη έγκυρος κωδικός. Προσπαθείστε ξανά.+password_ok=ΟΚ+password_cancel=Ακύρωσηprinting_not_supported=Προειδοποίηση: Η εκτύπωση δεν υποστηρίζεται πλήρως από αυτόν τον περιηγητή.printing_not_ready=Προειδοποίηση: Το PDF δεν φορτώθηκε πλήρως για εκτύπωση.diff --git a/data/libs/pdfjs/web/locale/en-US/viewer.properties b/data/libs/pdfjs/web/locale/en-US/viewer.propertiesindex 4a3a6aaa2..5c43b5057 100644--- a/data/libs/pdfjs/web/locale/en-US/viewer.properties+++ b/data/libs/pdfjs/web/locale/en-US/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Document Properties…document_properties_label=Document Properties…document_properties_file_name=File name:document_properties_file_size=File size:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Title:document_properties_author=Author:@@ -75,6 +79,8 @@ document_properties_subject=Subject:document_properties_keywords=Keywords:document_properties_creation_date=Creation Date:document_properties_modification_date=Modification Date:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Creator:document_properties_producer=PDF Producer:diff --git a/data/libs/pdfjs/web/locale/en-ZA/viewer.properties b/data/libs/pdfjs/web/locale/en-ZA/viewer.propertiesindex 6c063a424..193048465 100644--- a/data/libs/pdfjs/web/locale/en-ZA/viewer.properties+++ b/data/libs/pdfjs/web/locale/en-ZA/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Document Properties…document_properties_label=Document Properties…document_properties_file_name=File name:document_properties_file_size=File size:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Title:document_properties_author=Author:@@ -75,6 +79,8 @@ document_properties_subject=Subject:document_properties_keywords=Keywords:document_properties_creation_date=Creation Date:document_properties_modification_date=Modification Date:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Creator:document_properties_producer=PDF Producer:@@ -140,12 +146,16 @@ page_scale_width=Page Widthpage_scale_fit=Page Fitpage_scale_auto=Automatic Zoompage_scale_actual=Actual Size+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.+page_scale_percent={{scale}}%# Loading indicator messagesloading_error_indicator=Errorloading_error=An error occurred while loading the PDF.invalid_file_error=Invalid or corrupted PDF file.missing_file_error=Missing PDF file.+unexpected_response_error=Unexpected server response.# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.# "{{type}}" will be replaced with an annotation type from a list defined indiff --git a/data/libs/pdfjs/web/locale/eo/viewer.properties b/data/libs/pdfjs/web/locale/eo/viewer.propertiesindex 4350e1d3b..7cc95c64b 100644--- a/data/libs/pdfjs/web/locale/eo/viewer.properties+++ b/data/libs/pdfjs/web/locale/eo/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Atributoj de dokumento…document_properties_label=Atributoj de dokumento…document_properties_file_name=Nomo de dosiero:document_properties_file_size=Grado de dosiero:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KO ({{size_b}} oktetoj)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MO ({{size_b}} oktetoj)document_properties_title=Titolo:document_properties_author=Aŭtoro:@@ -75,6 +79,8 @@ document_properties_subject=Temo:document_properties_keywords=Ŝlosilvorto:document_properties_creation_date=Dato de kreado:document_properties_modification_date=Dato de modifo:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Kreinto:document_properties_producer=Produktinto de PDF:diff --git a/data/libs/pdfjs/web/locale/es-MX/viewer.properties b/data/libs/pdfjs/web/locale/es-MX/viewer.propertiesindex f0b3e7a03..1cfd03a3c 100644--- a/data/libs/pdfjs/web/locale/es-MX/viewer.properties+++ b/data/libs/pdfjs/web/locale/es-MX/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Propiedades del documento…document_properties_label=Propiedades del documento…document_properties_file_name=Nombre del archivo:document_properties_file_size=Tamaño del archivo:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Título:document_properties_author=Autor:@@ -75,6 +79,8 @@ document_properties_subject=Asunto:document_properties_keywords=Palabras claves:document_properties_creation_date=Fecha de creación:document_properties_modification_date=Fecha de modificación:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Creador:document_properties_producer=Productor PDF:diff --git a/data/libs/pdfjs/web/locale/eu/viewer.properties b/data/libs/pdfjs/web/locale/eu/viewer.propertiesindex 52d50baa7..15a3b0934 100644--- a/data/libs/pdfjs/web/locale/eu/viewer.properties+++ b/data/libs/pdfjs/web/locale/eu/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Dokumentuaren propietateak…document_properties_label=Dokumentuaren propietateak…document_properties_file_name=Fitxategi-izena:document_properties_file_size=Fitxategiaren tamaina:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} byte)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} byte)document_properties_title=Izenburua:document_properties_author=Egilea:@@ -75,6 +79,8 @@ document_properties_subject=Gaia:document_properties_keywords=Gako-hitzak:document_properties_creation_date=Sortze-data:document_properties_modification_date=Aldatze-data:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Sortzailea:document_properties_producer=PDFaren ekoizlea:diff --git a/data/libs/pdfjs/web/locale/fa/viewer.properties b/data/libs/pdfjs/web/locale/fa/viewer.propertiesindex 0894cfd7f..b9029e81e 100644--- a/data/libs/pdfjs/web/locale/fa/viewer.properties+++ b/data/libs/pdfjs/web/locale/fa/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=خصوصیات سند...document_properties_label=خصوصیات سند...document_properties_file_name=نام فایل:document_properties_file_size=حجم پرونده:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} کیلوبایت ({{size_b}} بایت)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} مگابایت ({{size_b}} بایت)document_properties_title=عنوان:document_properties_author=نویسنده:@@ -75,6 +79,8 @@ document_properties_subject=موضوع:document_properties_keywords=کلیدواژهها:document_properties_creation_date=تاریخ ایجاد:document_properties_modification_date=تاریخ ویرایش:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}، {{time}}document_properties_creator=ایجاد کننده:document_properties_producer=ایجاد کننده PDF:diff --git a/data/libs/pdfjs/web/locale/ff/viewer.properties b/data/libs/pdfjs/web/locale/ff/viewer.propertiesindex 8a64098b4..5e9781a91 100644--- a/data/libs/pdfjs/web/locale/ff/viewer.properties+++ b/data/libs/pdfjs/web/locale/ff/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Keeroraaɗi Winndannde…document_properties_label=Keeroraaɗi Winndannde…document_properties_file_name=Innde fiilde:document_properties_file_size=Ɓetol fiilde:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bite)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bite)document_properties_title=Tiitoonde:document_properties_author=Binnduɗo:@@ -75,6 +79,8 @@ document_properties_subject=Toɓɓere:document_properties_keywords=Kelmekele jiytirɗe:document_properties_creation_date=Ñalnde Sosaa:document_properties_modification_date=Ñalnde Waylaa:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Cosɗo:document_properties_producer=Paggiiɗo PDF:diff --git a/data/libs/pdfjs/web/locale/fy-NL/viewer.properties b/data/libs/pdfjs/web/locale/fy-NL/viewer.propertiesindex d81561c78..4a0f747c6 100644--- a/data/libs/pdfjs/web/locale/fy-NL/viewer.properties+++ b/data/libs/pdfjs/web/locale/fy-NL/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Dokuminteigenskippen…document_properties_label=Dokuminteigenskippen…document_properties_file_name=Bestânsnamme:document_properties_file_size=Bestânsgrutte:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Titel:document_properties_author=Auteur:@@ -75,6 +79,8 @@ document_properties_subject=Underwerp:document_properties_keywords=Kaaiwurden:document_properties_creation_date=Oanmaakdatum:document_properties_modification_date=Bewurkingsdatum:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Makker:document_properties_producer=PDF-makker:diff --git a/data/libs/pdfjs/web/locale/ga-IE/viewer.properties b/data/libs/pdfjs/web/locale/ga-IE/viewer.propertiesindex 038195968..0a638bdc5 100644--- a/data/libs/pdfjs/web/locale/ga-IE/viewer.properties+++ b/data/libs/pdfjs/web/locale/ga-IE/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Airíonna na Cáipéise…document_properties_label=Airíonna na Cáipéise…document_properties_file_name=Ainm an chomhaid:document_properties_file_size=Méid an chomhaid:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} kB ({{size_b}} beart)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} beart)document_properties_title=Teideal:document_properties_author=Údar:@@ -75,6 +79,8 @@ document_properties_subject=Ábhar:document_properties_keywords=Eochairfhocail:document_properties_creation_date=Dáta Cruthaithe:document_properties_modification_date=Dáta Athraithe:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Cruthaitheoir:document_properties_producer=Cruthaitheoir an PDF:diff --git a/data/libs/pdfjs/web/locale/gd/viewer.properties b/data/libs/pdfjs/web/locale/gd/viewer.propertiesindex c2edf028e..5826d2e79 100644--- a/data/libs/pdfjs/web/locale/gd/viewer.properties+++ b/data/libs/pdfjs/web/locale/gd/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Roghainnean na sgrìobhainne…document_properties_label=Roghainnean na sgrìobhainne…document_properties_file_name=Ainm an fhaidhle:document_properties_file_size=Meud an fhaidhle:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Tiotal:document_properties_author=Ùghdar:@@ -75,6 +79,8 @@ document_properties_subject=Cuspair:document_properties_keywords=Faclan-luirg:document_properties_creation_date=Latha a chruthachaidh:document_properties_modification_date=Latha atharrachaidh:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Cruthadair:document_properties_producer=Saothraiche a' PDF:diff --git a/data/libs/pdfjs/web/locale/gl/viewer.properties b/data/libs/pdfjs/web/locale/gl/viewer.propertiesindex 0a1f17b5b..0acc4f789 100644--- a/data/libs/pdfjs/web/locale/gl/viewer.properties+++ b/data/libs/pdfjs/web/locale/gl/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Propiedades do documento…document_properties_label=Propiedades do documento…document_properties_file_name=Nome do ficheiro:document_properties_file_size=Tamaño do ficheiro:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Título:document_properties_author=Autor:@@ -75,6 +79,8 @@ document_properties_subject=Asunto:document_properties_keywords=Palabras clave:document_properties_creation_date=Data de creación:document_properties_modification_date=Data de modificación:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Creado por:document_properties_producer=Xenerador do PDF:@@ -140,6 +146,9 @@ page_scale_width=Largura da páxinapage_scale_fit=Axuste de páxinapage_scale_auto=Zoom automáticopage_scale_actual=Tamaño actual+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.+page_scale_percent={{scale}}%# Loading indicator messagesloading_error_indicator=Errodiff --git a/data/libs/pdfjs/web/locale/gu-IN/viewer.properties b/data/libs/pdfjs/web/locale/gu-IN/viewer.propertiesindex 1e58d3fe3..e0d371efa 100644--- a/data/libs/pdfjs/web/locale/gu-IN/viewer.properties+++ b/data/libs/pdfjs/web/locale/gu-IN/viewer.properties@@ -1,12 +1,22 @@-# This Source Code Form is subject to the terms of the Mozilla Public-# License, v. 2.0. If a copy of the MPL was not distributed with this-# file, You can obtain one at http://mozilla.org/MPL/2.0/.+# Copyright 2012 Mozilla Foundation+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.# Main toolbar buttons (tooltips and alt text for images)previous.title=પહેલાનુ પાનુંprevious_label=પહેલાનુnext.title=આગળનુ પાનું- next_label=આગળનું+next_label=આગળનું# LOCALIZATION NOTE (page_label, page_of):# These strings are concatenated to form the "Page: X of Y" string.@@ -14,43 +24,107 @@ next.title=આગળનુ પાનું# representing the total number of pages.page_label=પાનું:page_of={{pageCount}} નું+zoom_out.title=મોટુ કરોzoom_out_label=મોટુ કરોzoom_in.title=નાનું કરોzoom_in_label=નાનું કરોzoom.title=નાનું મોટુ કરો-print.title=છાપો-print_label=છારો+presentation_mode.title=રજૂઆત સ્થિતિમાં જાવ+presentation_mode_label=રજૂઆત સ્થિતિopen_file.title=ફાઇલ ખોલોopen_file_label=ખોલો+print.title=છાપો+print_label=છારોdownload.title=ડાઉનલોડdownload_label=ડાઉનલોડbookmark.title=વર્તમાન દૃશ્ય (નવી વિન્ડોમાં નકલ કરો અથવા ખોલો)bookmark_label=વર્તમાન દૃશ્ય+# Secondary toolbar and context menu+tools.title=સાધનો+tools_label=સાધનો+first_page.label=પહેલાં પાનામાં જાવ+first_page_label=પ્રથમ પાનાં પર જાવ+last_page.label=છેલ્લા પાનામાં જાવ+last_page_label=છેલ્લા પાનાં પર જાવ+page_rotate_cw.label=ઘડિયાળનાં કાંટાની જેમ ફેરવો+page_rotate_cw_label=ઘડિયાળનાં કાંટા તરફ ફેરવો+page_rotate_ccw.label=ઘડિયાળનાં કાંટાની ઉલટી દિશામાં ફેરવો+page_rotate_ccw_label=ઘડિયાળનાં કાંટાની વિરુદ્દ ફેરવો++hand_tool_enable.title=હાથનાં સાધનને સક્રિય કરો+hand_tool_enable_label=હાથનાં સાધનને સક્રિય કરો+hand_tool_disable.title=હાથનાં સાધનને નિષ્ક્રિય કરો+hand_tool_disable_label=હાથનાં સાધનને નિષ્ક્રિય કરો++# Document properties dialog box+document_properties.title=દસ્તાવેજ ગુણધર્મો…+document_properties_label=દસ્તાવેજ ગુણધર્મો…+document_properties_file_name=ફાઇલ નામ:+document_properties_file_size=ફાઇલ માપ:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+document_properties_kb={{size_kb}} KB ({{size_b}} બાઇટ)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.+document_properties_mb={{size_mb}} MB ({{size_b}} બાઇટ)+document_properties_title=શીર્ષક:+document_properties_author=લેખક:+document_properties_subject=વિષય:+document_properties_keywords=કિવર્ડ:+document_properties_creation_date=નિર્માણ તારીખ:+document_properties_modification_date=ફેરફાર તારીખ:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.+document_properties_date_string={{date}}, {{time}}+document_properties_creator=નિર્માતા:+document_properties_producer=PDF નિર્માતા:+document_properties_version=PDF આવૃત્તિ:+document_properties_page_count=પાનાં ગણતરી:+document_properties_close=બંધ કરો+# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are# tooltips)+toggle_sidebar.title=ટૉગલ બાજુપટ્ટી+toggle_sidebar_label=ટૉગલ બાજુપટ્ટીoutline.title=દસ્તાવેજ રૂપરેખા બતાવોoutline_label=દસ્તાવેજ રૂપરેખા+attachments.title=જોડાણોને બતાવો+attachments_label=જોડાણોthumbs.title=થંબનેલ્સ બતાવોthumbs_label=થંબનેલ્સ--# Document outline messages-+findbar.title=દસ્તાવેજમાં શોધો+findbar_label=શોધો# Thumbnails panel item (tooltip and alt text for images)# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page# number.thumb_page_title=પાનું {{page}}-# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page# number.thumb_page_canvas=પાનાં {{page}} નું થંબનેલ્સ++# Find panel button title and messages+find_label=શોધો:+find_previous.title=શબ્દસમૂહની પાછલી ઘટનાને શોધો+find_previous_label=પહેલાંનુ+find_next.title=શબ્દસમૂહની આગળની ઘટનાને શોધો+find_next_label=આગળનું+find_highlight=બધુ પ્રકાશિત કરો+find_match_case_label=કેસ બંધબેસાડો+find_reached_top=દસ્તાવેજનાં ટોચે પહોંચી ગયા, તળિયેથી ચાલુ કરેલ હતુ+find_reached_bottom=દસ્તાવેજનાં અંતે પહોંચી ગયા, ઉપરથી ચાલુ કરેલ હતુ+find_not_found=શબ્દસમૂહ મળ્યુ નથી+# Error panel labelserror_more_info=વધારે જાણકારીerror_less_info=ઓછી જાણકારીerror_close=બંધ કરો+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be+# replaced by the PDF.JS version and build ID.+error_version_info=PDF.js v{{version}} (build: {{build}})# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an# english string describing the error.error_message=સંદેશો: {{message}}@@ -62,88 +136,32 @@ error_file=ફાઇલ: {{file}}# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line numbererror_line=વાક્ય: {{line}}rendering_error=ભૂલ ઉદ્ભવી જ્યારે પાનાંનુ રેન્ડ કરી રહ્યા હોય.+# Predefined zoom valuespage_scale_width=પાનાની પહોળાઇpage_scale_fit=પાનું બંધબેસતુpage_scale_auto=આપમેળે નાનુંમોટુ કરોpage_scale_actual=ચોક્કસ માપ-# Loading indicator messages-# LOCALIZATION NOTE (error_line): "{{[percent}}" will be replaced with a percentage+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.+# Loading indicator messagesloading_error_indicator=ભૂલloading_error=ભૂલ ઉદ્ભવી જ્યારે PDF ને લાવી રહ્યા હોય.-# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.-# "{{[type}}" will be replaced with an annotation type from a list defined in+invalid_file_error=અયોગ્ય અથવા ભાંગેલ PDF ફાઇલ.+missing_file_error=ગુમ થયેલ PDF ફાઇલ.++# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.+# "{{type}}" will be replaced with an annotation type from a list defined in# the PDF spec (32000-1:2008 Table 169 – Annotation types).# Some common types are e.g.: "Check", "Text", "Comment", "Note"+text_annotation_type.alt=[{{type}} Annotation]+password_label=આ PDF ફાઇલને ખોલવા પાસવર્ડને દાખલ કરો.+password_invalid=અયોગ્ય પાસવર્ડ. મહેરબાની કરીને ફરી પ્રયત્ન કરો.+password_ok=બરાબર+password_cancel=રદ કરોprinting_not_supported=ચેતવણી: છાપવાનું આ બ્રાઉઝર દ્દારા સંપૂર્ણપણે આધારભૂત નથી.--error_version_info=PDF.js v{{version}} (build: {{build}})-find_highlight=બધુ પ્રકાશિત કરો-find_label=શોધો:-find_match_case_label=કેસ બંધબેસાડો-find_next.title=શબ્દસમૂહની આગળની ઘટનાને શોધો-find_next_label=આગળનું-find_not_found=શબ્દસમૂહ મળ્યુ નથી-find_previous.title=શબ્દસમૂહની પાછલી ઘટનાને શોધો-find_previous_label=પહેલાંનુ-find_reached_bottom=દસ્તાવેજનાં અંતે પહોંચી ગયા, ઉપરથી ચાલુ કરેલ હતુ-find_reached_top=દસ્તાવેજનાં ટોચે પહોંચી ગયા, તળિયેથી ચાલુ કરેલ હતુ-findbar.title=દસ્તાવેજમાં શોધો-findbar_label=શોધો-first_page.label=પહેલાં પાનામાં જાવ-invalid_file_error=અયોગ્ય અથવા ભાંગેલ PDF ફાઇલ.-last_page.label=છેલ્લા પાનામાં જાવ-missing_file_error=ગુમ થયેલ PDF ફાઇલ.-page_rotate_ccw.label=ઘડિયાળનાં કાંટાની ઉલટી દિશામાં ફેરવો-page_rotate_cw.label=ઘડિયાળનાં કાંટાની જેમ ફેરવો-presentation_mode.title=રજૂઆત સ્થિતિમાં જાવ-presentation_mode_label=રજૂઆત સ્થિતિprinting_not_ready=Warning: PDF એ છાપવા માટે સંપૂર્ણપણે લાવેલ છે.-toggle_sidebar.title=ટૉગલ બાજુપટ્ટી-toggle_sidebar_label=ટૉગલ બાજુપટ્ટીweb_fonts_disabled=વેબ ફોન્ટ નિષ્ક્રિય થયેલ છે: ઍમ્બેડ થયેલ PDF ફોન્ટને વાપરવાનું અસમર્થ.document_colors_disabled=PDF દસ્તાવેજો તેનાં પોતાના રંગોને વાપરવા પરવાનગી આપતા નથી: 'તેનાં પોતાનાં રંગોને પસંદ કરવા માટે પાનાંને પરવાનગી આપો' બ્રાઉઝરમાં નિષ્ક્રિય થયેલ છે.-text_annotation_type.alt=[{{type}} Annotation]--attachments.title=જોડાણોને બતાવો-attachments_label=જોડાણો-document_properties_author=લેખક:-document_properties_close=બંધ કરો-document_properties_creation_date=નિર્માણ તારીખ:-document_properties_creator=નિર્માતા:-document_properties_date_string={{date}}, {{time}}-document_properties_file_name=ફાઇલ નામ:-document_properties_file_size=ફાઇલ માપ:-document_properties_kb={{size_kb}} KB ({{size_b}} બાઇટ)-document_properties_keywords=કિવર્ડ:-document_properties_label=દસ્તાવેજ ગુણધર્મો…-document_properties_mb={{size_mb}} MB ({{size_b}} બાઇટ)-document_properties_modification_date=ફેરફાર તારીખ:-document_properties_page_count=પાનાં ગણતરી:-document_properties_producer=PDF નિર્માતા:-document_properties_subject=વિષય:-document_properties_title=શીર્ષક:-first_page.title=પ્રથમ પાનાં પર જાવ-first_page_label=પ્રથમ પાનાં પર જાવ-hand_tool_disable.title=હાથનાં સાધનને નિષ્ક્રિય કરો-hand_tool_disable_label=હાથનાં સાધનને નિષ્ક્રિય કરો-hand_tool_enable.title=હાથનાં સાધનને સક્રિય કરો-hand_tool_enable_label=હાથનાં સાધનને સક્રિય કરો-last_page.title=છેલ્લા પાનાં પર જાવ-last_page_label=છેલ્લા પાનાં પર જાવ-page_rotate_ccw.title=ઘડિયાળનાં કાંટાની વિરુદ્દ ફેરવો-page_rotate_ccw_label=ઘડિયાળનાં કાંટાની વિરુદ્દ ફેરવો-page_rotate_cw.title=ઘડિયાળનાં કાંટા તરફ ફેરવો-page_rotate_cw_label=ઘડિયાળનાં કાંટા તરફ ફેરવો-password_cancel=રદ કરો-password_invalid=અયોગ્ય પાસવર્ડ. મહેરબાની કરીને ફરી પ્રયત્ન કરો.-password_label=આ PDF ફાઇલને ખોલવા પાસવર્ડને દાખલ કરો.-password_ok=બરાબર-tools.title=સાધનો-tools_label=સાધનો--document_properties_version=PDF આવૃત્તિ:-document_properties.title=દસ્તાવેજ ગુણધર્મો…-diff --git a/data/libs/pdfjs/web/locale/he/viewer.properties b/data/libs/pdfjs/web/locale/he/viewer.propertiesindex 6a1116f3a..10f1177ee 100644--- a/data/libs/pdfjs/web/locale/he/viewer.properties+++ b/data/libs/pdfjs/web/locale/he/viewer.properties@@ -1,6 +1,16 @@-# This Source Code Form is subject to the terms of the Mozilla Public-# License, v. 2.0. If a copy of the MPL was not distributed with this-# file, You can obtain one at http://mozilla.org/MPL/2.0/.+# Copyright 2012 Mozilla Foundation+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.# Main toolbar buttons (tooltips and alt text for images)previous.title=דף קודם@@ -57,7 +67,11 @@ document_properties.title=מאפייני מסמך…document_properties_label=מאפייני מסמך…document_properties_file_name=שם קובץ:document_properties_file_size=גודל הקובץ:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} ק״ב ({{size_b}} בתים)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} מ״ב ({{size_b}} בתים)document_properties_title=כותרת:document_properties_author=מחבר:@@ -65,12 +79,15 @@ document_properties_subject=נושא:document_properties_keywords=מילות מפתח:document_properties_creation_date=תאריך יצירה:document_properties_modification_date=תאריך שינוי:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=יוצר:document_properties_producer=יצרן PDF:document_properties_version=גרסת PDF:document_properties_page_count=מספר דפים:document_properties_close=סגירה+# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are# tooltips)@@ -129,12 +146,16 @@ page_scale_width=רוחב העמודpage_scale_fit=התאמה לעמודpage_scale_auto=מרחק מתצוגה אוטומטיpage_scale_actual=גודל אמתי+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.+page_scale_percent={{scale}}%# Loading indicator messagesloading_error_indicator=שגיאהloading_error=אירעה שגיאה בעת טעינת ה־PDF.invalid_file_error=קובץ PDF פגום או לא תקין.missing_file_error=קובץ PDF חסר.+unexpected_response_error=תגובת שרת לא צפויה.# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.# "{{type}}" will be replaced with an annotation type from a list defined in@@ -149,4 +170,4 @@ password_cancel=ביטולprinting_not_supported=אזהרה: הדפסה אינה נתמכת במלואה בדפדפן זה.printing_not_ready=אזהרה: ה־PDF לא ניתן לחלוטין עד מצב שמאפשר הדפסה.web_fonts_disabled=גופני רשת מנוטרלים: לא ניתן להשתמש בגופני PDF מוטבעים.-document_colors_disabled=מסמכי PDF לא יכולים להשתמש בצבעים משלהם: האפשרות \\'לאפשר לעמודים לבחור צבעים משלהם\\' אינה פעילה בדפדפן.\ No newline at end of file+document_colors_disabled=מסמכי PDF לא יכולים להשתמש בצבעים משלהם: האפשרות \\'לאפשר לעמודים לבחור צבעים משלהם\\' אינה פעילה בדפדפן.diff --git a/data/libs/pdfjs/web/locale/hi-IN/viewer.properties b/data/libs/pdfjs/web/locale/hi-IN/viewer.propertiesindex 7b8db3ed8..72a246330 100644--- a/data/libs/pdfjs/web/locale/hi-IN/viewer.properties+++ b/data/libs/pdfjs/web/locale/hi-IN/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=दस्तावेज़ विशेषता...document_properties_label=दस्तावेज़ विशेषता...document_properties_file_name=फ़ाइल नाम:document_properties_file_size=फाइल आकारः+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} बाइट)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} बाइट)document_properties_title=शीर्षक:document_properties_author=लेखकः@@ -75,6 +79,8 @@ document_properties_subject=विषय:document_properties_keywords=कुंजी-शब्द:document_properties_creation_date=निर्माण दिनांक:document_properties_modification_date=संशोधन दिनांक:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=निर्माता:document_properties_producer=PDF उत्पादक:@@ -142,6 +148,7 @@ page_scale_auto=स्वचालित जूमpage_scale_actual=वास्तविक आकार# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a# numerical scale value.+page_scale_percent={{scale}}%# Loading indicator messagesloading_error_indicator=त्रुटिdiff --git a/data/libs/pdfjs/web/locale/hr/viewer.properties b/data/libs/pdfjs/web/locale/hr/viewer.propertiesindex 50a43a7ce..c60ea8534 100644--- a/data/libs/pdfjs/web/locale/hr/viewer.properties+++ b/data/libs/pdfjs/web/locale/hr/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Svojstva dokumenta...document_properties_label=Svojstva dokumenta...document_properties_file_name=Naziv datoteke:document_properties_file_size=Veličina datoteke:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bajtova)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bajtova)document_properties_title=Naslov:document_properties_author=Autor:@@ -75,6 +79,8 @@ document_properties_subject=Predmet:document_properties_keywords=Ključne riječi:document_properties_creation_date=Datum stvaranja:document_properties_modification_date=Datum promjene:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Stvaralac:document_properties_producer=PDF stvaratelj:diff --git a/data/libs/pdfjs/web/locale/hu/viewer.properties b/data/libs/pdfjs/web/locale/hu/viewer.propertiesindex eda1c88bc..384da3108 100644--- a/data/libs/pdfjs/web/locale/hu/viewer.properties+++ b/data/libs/pdfjs/web/locale/hu/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Dokumentum tulajdonságai…document_properties_label=Dokumentum tulajdonságai…document_properties_file_name=Fájlnév:document_properties_file_size=Fájlméret:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bájt)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bájt)document_properties_title=Cím:document_properties_author=Szerző:@@ -75,6 +79,8 @@ document_properties_subject=Tárgy:document_properties_keywords=Kulcsszavak:document_properties_creation_date=Létrehozás dátuma:document_properties_modification_date=Módosítás dátuma:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Létrehozta:document_properties_producer=PDF előállító:diff --git a/data/libs/pdfjs/web/locale/hy-AM/viewer.properties b/data/libs/pdfjs/web/locale/hy-AM/viewer.propertiesindex b26af7d66..c28a9e71a 100644--- a/data/libs/pdfjs/web/locale/hy-AM/viewer.properties+++ b/data/libs/pdfjs/web/locale/hy-AM/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Փաստաթղթի հատկությունները...document_properties_label=Փաստաթղթի հատկությունները...document_properties_file_name=Ֆայլի անունը.document_properties_file_size=Ֆայլի չափը.+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} ԿԲ ({{size_b}} բայթ)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} ՄԲ ({{size_b}} բայթ)document_properties_title=Վերնագիր.document_properties_author=Հեղինակ․@@ -75,6 +79,8 @@ document_properties_subject=Վերնագիր.document_properties_keywords=Հիմնաբառ.document_properties_creation_date=Ստեղծելու ամսաթիվը.document_properties_modification_date=Փոփոխելու ամսաթիվը.+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Ստեղծող.document_properties_producer=PDF-ի հեղինակը.@@ -110,7 +116,7 @@ find_previous.title=Գտնել անրահայտության նախորդ հանfind_previous_label=Նախորդըfind_next.title=Գտիր արտահայտության հաջորդ հանդիպումըfind_next_label=Հաջորդը-find_highlight=Նշագծել Բոլորը+find_highlight=Գունանշել բոլորըfind_match_case_label=Մեծ(փոքր)ատառ հաշվի առնելfind_reached_top=Հասել եք փաստաթղթի վերևին, կշարունակվի ներքևիցfind_reached_bottom=Հասել եք փաստաթղթի վերջին, կշարունակվի վերևիցdiff --git a/data/libs/pdfjs/web/locale/id/viewer.properties b/data/libs/pdfjs/web/locale/id/viewer.propertiesindex 598408335..26475f445 100644--- a/data/libs/pdfjs/web/locale/id/viewer.properties+++ b/data/libs/pdfjs/web/locale/id/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Properti Dokumen…document_properties_label=Properti Dokumen…document_properties_file_name=Nama berkas:document_properties_file_size=Ukuran berkas:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} byte)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} byte)document_properties_title=Judul:document_properties_author=Penyusun:@@ -75,6 +79,8 @@ document_properties_subject=Subjek:document_properties_keywords=Kata Kunci:document_properties_creation_date=Tanggal Dibuat:document_properties_modification_date=Tanggal Dimodifikasi:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Pembuat:document_properties_producer=Pemroduksi PDF:diff --git a/data/libs/pdfjs/web/locale/is/viewer.properties b/data/libs/pdfjs/web/locale/is/viewer.propertiesindex ffc055a54..faa8829b5 100644--- a/data/libs/pdfjs/web/locale/is/viewer.properties+++ b/data/libs/pdfjs/web/locale/is/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Eiginleikar skjals…document_properties_label=Eiginleikar skjals…document_properties_file_name=Skráarnafn:document_properties_file_size=Skrárstærð:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Titill:document_properties_author=Hönnuður:@@ -75,6 +79,8 @@ document_properties_subject=Efni:document_properties_keywords=Stikkorð:document_properties_creation_date=Búið til:document_properties_modification_date=Dags breytingar:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Höfundur:document_properties_producer=PDF framleiðandi:diff --git a/data/libs/pdfjs/web/locale/ka/viewer.properties b/data/libs/pdfjs/web/locale/ka/viewer.propertiesindex f6c68f50f..6644ad2e4 100644--- a/data/libs/pdfjs/web/locale/ka/viewer.properties+++ b/data/libs/pdfjs/web/locale/ka/viewer.properties@@ -13,112 +13,66 @@# limitations under the License.# Main toolbar buttons (tooltips and alt text for images)-previous.title=წინა გვერდი-previous_label=წინა-next.title=შემდეგი გვერდი-next_label=შემდეგი# LOCALIZATION NOTE (page_label, page_of):# These strings are concatenated to form the "Page: X of Y" string.# Do not translate "{{pageCount}}", it will be substituted with a number# representing the total number of pages.-page_label=გვერდი:-page_of=of {{pageCount}}-zoom_out.title=შემცირება-zoom_out_label=გაზრდა-zoom_in.title=შემცირება-zoom_in_label=შემცირებაzoom.title=მასშტაბი-print.title=ამობეჭდვა-print_label=ამობეჭდვა-presentation_mode.title=გადართვა პრეზენტაციის რეჟიმზე-presentation_mode_label=პრეზენტაციის რეჟიმიopen_file.title=ფაილის გახსნაopen_file_label=გახსნა-download.title=ჩამოტვირთვა-download_label=ჩამოტვირთვა-bookmark.title=მიმდინარე ხედი (ასლი ან გახსნა ახალ სარკმელში)-bookmark_label=მიმდინარე ხედი++# Secondary toolbar and context menu+++# Document properties dialog box+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.+document_properties_title=სათაური:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are# tooltips)-toggle_sidebar.title=სტენდის ჩვენება/დამალვა-toggle_sidebar_label=სტენდის ჩვენება/დამალვა-outline.title=დოკუმენტის სქემის ჩვენება-outline_label=დოკუმენტის სქემა-thumbs.title=მინიატურების ჩვენება-thumbs_label=მინიატურები-findbar.title=პოვნა დოკუმენტშიfindbar_label=პოვნა# Thumbnails panel item (tooltip and alt text for images)# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page# number.-thumb_page_title=გვერდი {{page}}# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page# number.-thumb_page_canvas=მინიატურა გვერდისთვის {{page}}--# Context menu-first_page.label=გადასვლა პირველ გვერდზე-last_page.label=გადასვლა ბოლო გვერდზე-page_rotate_cw.label=დატრიალება-page_rotate_ccw.label=უკუდატრიალება# Find panel button title and messages-find_label=პოვნა:-find_previous.title=კონტექსტის წინა თანხვედრის პოვნა-find_previous_label=წინა-find_next.title=კონტექსტის შემდეგი თანხვედრის პოვნა-find_next_label=შემდეგი-find_highlight=ყველას გამოყოფა-find_match_case_label=მთავრულის გათვალისწინებით-find_reached_top=დოკუმენტის თავი, გრძელდება დოკუმენტის ბოლოდან-find_reached_bottom=დოკუმენტის ბოლო, გრძელდება დოკუმენტის თავიდან+find_previous.title=ფრაზის წინა კონტექსტის პოვნა+find_next.title=ფრაზის შემდეგი კონტექსტის პოვნაfind_not_found=კონტექსტი ვერ მოიძებნა# Error panel labels-error_more_info=დეტალების ჩვენება-error_less_info=დეტალების დამალვა-error_close=დახურვა+error_more_info=დამატებითი ინფორმაცია# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be# replaced by the PDF.JS version and build ID.-error_version_info=PDF.js v{{version}} (აგება: {{build}})# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an# english string describing the error.-error_message=გზავნილი: {{message}}# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack# trace.-error_stack=მჭიდი: {{stack}}# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename-error_file=ფაილი: {{file}}# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number-error_line=სტრიქონი: {{line}}-rendering_error=შეცდომა გვერდის ასახვისას.# Predefined zoom values-page_scale_width=გვერდის სიგანეზე-page_scale_fit=გვერდის შევსება-page_scale_auto=თვითმასშტაბი-page_scale_actual=რეალური ზომა+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=შეცდომა-loading_error=შეცდომა PDF ფაილის ჩატვირთვისას.-invalid_file_error=უმართებლო ან დაზიანებული PDF ფაილი.-missing_file_error=მცდარი PDF ფაილი.# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.# "{{type}}" will be replaced with an annotation type from a list defined in# the PDF spec (32000-1:2008 Table 169 – Annotation types).# Some common types are e.g.: "Check", "Text", "Comment", "Note"-text_annotation_type.alt=[{{type}} ანოტაცია]-request_password=PDF დაცულია პაროლით:-invalid_password=პაროლი მცდარია.+password_ok=დიახ+password_cancel=გაუქმება-printing_not_supported=გაფრთხილება: ამ ბრაუზერში ამობეჭდვის მხარდაჭერა არასრულია .-printing_not_ready=გაფრთხილება: PDF ფაილი ამოსაბეჭდად სრულად არ ჩატვირთულა.-web_fonts_disabled=ვებ შრიფტები ამორთულია: ჩადგმული PDF შრიფტებით სარგებლობა ვერ ხერხდება.-document_colors_disabled=PDF დოკუმენტებს ეკრძალებათ საკუთარი ფერების გამოყენება: ბრაუზერში ამორთულია პარამეტრი - «გვერდებისთვის საკუთარი ფერებით სარგებლობის უფლება».diff --git a/data/libs/pdfjs/web/locale/kk/viewer.properties b/data/libs/pdfjs/web/locale/kk/viewer.propertiesindex c6fbb8dfb..5a15a9a11 100644--- a/data/libs/pdfjs/web/locale/kk/viewer.properties+++ b/data/libs/pdfjs/web/locale/kk/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Құжат қасиеттері…document_properties_label=Құжат қасиеттері…document_properties_file_name=Файл аты:document_properties_file_size=Файл өлшемі:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} КБ ({{size_b}} байт)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} МБ ({{size_b}} байт)document_properties_title=Тақырыбы...document_properties_author=Авторы:@@ -75,6 +79,8 @@ document_properties_subject=Тақырыбы:document_properties_keywords=Кілт сөздер:document_properties_creation_date=Жасалған күні:document_properties_modification_date=Түзету күні:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Жасаған:document_properties_producer=PDF өндірген:diff --git a/data/libs/pdfjs/web/locale/km/viewer.properties b/data/libs/pdfjs/web/locale/km/viewer.propertiesindex 6ea40053e..69a0670c4 100644--- a/data/libs/pdfjs/web/locale/km/viewer.properties+++ b/data/libs/pdfjs/web/locale/km/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=លក្ខណសម្បត្តិឯកសdocument_properties_label=លក្ខណសម្បត្តិឯកសារ…document_properties_file_name=ឈ្មោះឯកសារ៖document_properties_file_size=ទំហំឯកសារ៖+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=ចំណងជើង ៖document_properties_author=អ្នកនិពន្ធ៖@@ -75,6 +79,8 @@ document_properties_subject=ប្រធានបទ៖document_properties_keywords=ពាក្យគន្លឹះ៖document_properties_creation_date=កាលបរិច្ឆេទបង្កើត៖document_properties_modification_date=កាលបរិច្ឆេទកែប្រែ៖+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=អ្នកបង្កើត៖document_properties_producer=កម្មវិធីបង្កើត PDF ៖diff --git a/data/libs/pdfjs/web/locale/kn/viewer.properties b/data/libs/pdfjs/web/locale/kn/viewer.propertiesindex c50cd20f7..ba130234e 100644--- a/data/libs/pdfjs/web/locale/kn/viewer.properties+++ b/data/libs/pdfjs/web/locale/kn/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=ಡಾಕ್ಯುಮೆಂಟ್ ಗುಣಗಳdocument_properties_label=ಡಾಕ್ಯುಮೆಂಟ್ ಗುಣಗಳು...document_properties_file_name=ಕಡತದ ಹೆಸರು:document_properties_file_size=ಕಡತದ ಗಾತ್ರ:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} ಬೈಟ್ಗಳು)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} ಬೈಟ್ಗಳು)document_properties_title=ಶೀರ್ಷಿಕೆ:document_properties_author=ಕರ್ತೃ:@@ -75,6 +79,8 @@ document_properties_subject=ವಿಷಯ:document_properties_keywords=ಮುಖ್ಯಪದಗಳು:document_properties_creation_date=ರಚಿಸಿದ ದಿನಾಂಕ:document_properties_modification_date=ಮಾರ್ಪಡಿಸಲಾದ ದಿನಾಂಕ:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=ರಚಿಸಿದವರು:document_properties_producer=PDF ಉತ್ಪಾದಕ:diff --git a/data/libs/pdfjs/web/locale/ko/viewer.properties b/data/libs/pdfjs/web/locale/ko/viewer.propertiesindex eca6ffaca..3f1e9ba47 100644--- a/data/libs/pdfjs/web/locale/ko/viewer.properties+++ b/data/libs/pdfjs/web/locale/ko/viewer.properties@@ -30,12 +30,12 @@ zoom_out_label=축소zoom_in.title=확대zoom_in_label=확대zoom.title=크기-print.title=인쇄-print_label=인쇄presentation_mode.title=발표 모드로 전환presentation_mode_label=발표 모드open_file.title=파일 열기open_file_label=열기+print.title=인쇄+print_label=인쇄download.title=다운로드download_label=다운로드bookmark.title=지금 보이는 그대로 (복사하거나 새 창에 열기)@@ -67,7 +67,11 @@ document_properties.title=문서 속성…document_properties_label=문서 속성…document_properties_file_name=파일 이름:document_properties_file_size=파일 사이즈:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}}바이트)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}}바이트)document_properties_title=제목:document_properties_author=저자:@@ -75,6 +79,8 @@ document_properties_subject=주제:document_properties_keywords=키워드:document_properties_creation_date=생성일:document_properties_modification_date=수정일:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=생성자:document_properties_producer=PDF 생성기:@@ -151,8 +157,8 @@ invalid_file_error=유효하지 않거나 파손된 PDF 파일missing_file_error=PDF 파일이 없습니다.unexpected_response_error=알 수 없는 서버 응답입니다.-# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.-# "{{[type}}" will be replaced with an annotation type from a list defined in+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.+# "{{type}}" will be replaced with an annotation type from a list defined in# the PDF spec (32000-1:2008 Table 169 – Annotation types).# Some common types are e.g.: "Check", "Text", "Comment", "Note"text_annotation_type.alt=[{{type}} 주석]diff --git a/data/libs/pdfjs/web/locale/ku/viewer.properties b/data/libs/pdfjs/web/locale/ku/viewer.propertiesindex c614fa153..1f8e177d8 100644--- a/data/libs/pdfjs/web/locale/ku/viewer.properties+++ b/data/libs/pdfjs/web/locale/ku/viewer.properties@@ -59,7 +59,13 @@ page_rotate_ccw_label=Berevajî aliyê saetê ve bizivirîne# Document properties dialog box+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_title=Sernav:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are@@ -116,6 +122,8 @@ page_scale_width=Firehiya rûpelêpage_scale_fit=Di rûpelê de bicî bikepage_scale_auto=Xweber nêzîk bikepage_scale_actual=Mezinahiya rastîn+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=Xeletîdiff --git a/data/libs/pdfjs/web/locale/lg/viewer.properties b/data/libs/pdfjs/web/locale/lg/viewer.propertiesindex 5c88487a9..3cac56e01 100644--- a/data/libs/pdfjs/web/locale/lg/viewer.properties+++ b/data/libs/pdfjs/web/locale/lg/viewer.properties@@ -41,6 +41,12 @@ bookmark_label=Endabika Eriwo# Document properties dialog box+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are@@ -87,6 +93,8 @@ page_scale_width=Obugazi bwo Omukopage_scale_fit=Okutuka kwo Omukopage_scale_auto=Okwefunza no Kwegezapage_scale_actual=Obunene Obutufu+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=Ensobidiff --git a/data/libs/pdfjs/web/locale/lij/viewer.properties b/data/libs/pdfjs/web/locale/lij/viewer.propertiesindex dbab0a7ba..f311b79e3 100644--- a/data/libs/pdfjs/web/locale/lij/viewer.properties+++ b/data/libs/pdfjs/web/locale/lij/viewer.properties@@ -2,115 +2,115 @@# License, v. 2.0. If a copy of the MPL was not distributed with this# file, You can obtain one at http://mozilla.org/MPL/2.0/.-previous.title = Pàgina precedénte-previous_label = Precedénte-next.title = Pàgina dòppo+previous.title = Pagina precedente+previous_label = Precedente+next.title = Pagina dòpponext_label = Pròscima-page_label = Pàgina:+page_label = Pagina:page_of = de {{pageCount}}-zoom_out.title = Diminoìsci zoom-zoom_out_label = Diminoìsci zoom-zoom_in.title = Aoménta zoom-zoom_in_label = Aoménta zoom+zoom_out.title = Diminoisci zoom+zoom_out_label = Diminoisci zoom+zoom_in.title = Aomenta zoom+zoom_in_label = Aomenta zoomzoom.title = Zoom-print.title = Stànpa-print_label = Stànpa-open_file.title = Àrvi file-open_file_label = Àrvi-download.title = Descaregaménto-download_label = Descaregaménto-bookmark.title = Vixón corénte (còpia ò àrvi inte 'n nêuvo barcón)-bookmark_label = Vixón corénte-outline.title = Véddi strutûa documénto-outline_label = Strutûa documénto-thumbs.title = Móstra miniatûe-thumbs_label = Miniatûe-thumb_page_title = Pàgina {{page}}-thumb_page_canvas = Miniatûa da pàgina {{page}}-error_more_info = Ciù informaçioìn-error_less_info = Mêno informaçioìn+print.title = Stanpa+print_label = Stanpa+open_file.title = Arvi file+open_file_label = Arvi+download.title = Descaregamento+download_label = Descaregamento+bookmark.title = Vixon corente (còpia ò arvi inte 'n neuvo barcon)+bookmark_label = Vixon corente+outline.title = Veddi strutua documento+outline_label = Strutua documento+thumbs.title = Mostra miniatue+thumbs_label = Miniatue+thumb_page_title = Pagina {{page}}+thumb_page_canvas = Miniatua da pagina {{page}}+error_more_info = Ciù informaçioin+error_less_info = Meno informaçioinerror_version_info = PDF.js v{{version}} (build: {{build}})error_close = Særa-missing_file_error = O file PDF o no gh'é.-toggle_sidebar.title = Atîva/dizatîva bâra de sciànco-toggle_sidebar_label = Atîva/dizatîva bâra de sciànco-error_message = Mesàggio: {{message}}+missing_file_error = O file PDF o no gh'e.+toggle_sidebar.title = Ativa/dizativa bara de scianco+toggle_sidebar_label = Ativa/dizativa bara de scianco+error_message = Mesaggio: {{message}}error_stack = Stack: {{stack}}error_file = File: {{file}}-error_line = Lìnia: {{line}}-rendering_error = Gh'é stæto 'n'erô itno rendering da pàgina.-page_scale_width = Larghéssa pàgina-page_scale_fit = Adàtta a una pàgina-page_scale_auto = Zoom aotomàtico-page_scale_actual = Dimenscioìn efetîve+error_line = Linia: {{line}}+rendering_error = Gh'é stæto 'n'erô itno rendering da pagina.+page_scale_width = Larghessa pagina+page_scale_fit = Adatta a una pagina+page_scale_auto = Zoom aotomatico+page_scale_actual = Dimenscioin efetiveloading_error_indicator = Erô-loading_error = S'é verificòu 'n'erô itno caregaménto do PDF.-printing_not_supported = Atençión: a stànpa a no l'é conpletaménte soportâ da sto navegatô.+loading_error = S'é verificou 'n'erô itno caregamento do PDF.+printing_not_supported = Atençion: a stanpa a no l'é conpletamente soportâ da sto navegato.# Context menu-page_rotate_cw.label=Gîa in sénso do reléuio-page_rotate_ccw.label=Gîa in sénso do reléuio a-a revèrsa+page_rotate_cw.label=Gia in senso do releuio+page_rotate_ccw.label=Gia in senso do releuio a-a reversa-presentation_mode.title=Vànni into mòddo de prezentaçión-presentation_mode_label=Mòddo de prezentaçión+presentation_mode.title=Vanni into mòddo de prezentaçion+presentation_mode_label=Mòddo de prezentaçion-find_label = Trêuva:-find_previous.title = Trêuva a ripetiçión precedénte do tèsto da çercâ-find_previous_label = Precedénte-find_next.title = Trêuva a ripetiçión dòppo do tèsto da çercâ-find_next_label = Segoénte-find_highlight = Evidénçia-find_match_case_label = Maióscole/minóscole-find_reached_bottom = Razónto l'inìçio da pàgina, contìnoa da-a fìn-find_reached_top = Razónto a fìn da pàgina, contìnoa da l'inìçio-find_not_found = Tèsto no trovòu-findbar.title = Trêuva into documénto-findbar_label = Trêuva-first_page.label = Vànni a-a prìmma pàgina-last_page.label = Vànni a l'ùrtima pàgina-invalid_file_error = O file PDF o l'é no vàlido ò aroinòu.+find_label = Treuva:+find_previous.title = Treuva a ripetiçion precedente do testo da çercâ+find_previous_label = Precedente+find_next.title = Treuva a ripetiçion dòppo do testo da çercâ+find_next_label = Segoente+find_highlight = Evidençia+find_match_case_label = Maioscole/minoscole+find_reached_bottom = Razonto l'iniçio da pagina, continoa da-a fin+find_reached_top = Razonto a fin da pagina, continoa da l'iniçio+find_not_found = Testo no trovou+findbar.title = Treuva into documento+findbar_label = Treuva+first_page.label = Vanni a-a primma pagina+last_page.label = Vanni a l'urtima pagina+invalid_file_error = O file PDF o l'é no valido ò aroinou.-web_fonts_disabled = I font do web én dizativæ: inposcìbile adêuviâ i caràteri do PDF.-printing_not_ready = Atençión: o PDF o no l'é ancón caregòu conpletaménte pe-a stànpa.+web_fonts_disabled = I font do web en dizativæ: inposcibile adeuviâ i carateri do PDF.+printing_not_ready = Atençion: o PDF o no l'é ancon caregou conpletamente pe-a stanpa.-document_colors_disabled = No l'é poscìbile adêuviâ i pròpi coî pe-i documénti PDF: l'opçión do navegatô 'Permètti a-e pàgine de çèrne i pròpi coî in càngio de quélli inpostæ' a l'é dizativâ.-text_annotation_type.alt = [Anotaçión: {{type}}]+document_colors_disabled = No l'é poscibile adeuviâ i pròpi coî pe-i documenti PDF: l'opçion do navegatô 'Permetti a-e pagine de çerne i pròpi coî in cangio de quelli inpostæ' a l'é dizativa.+text_annotation_type.alt = [Anotaçion: {{type}}]-first_page.title = Vànni a-a prìmma pàgina-first_page_label = Vànni a-a prìmma pàgina-last_page.title = Vànni a l'ùrtima pàgina-last_page_label = Vànni a l'ùrtima pàgina-page_rotate_ccw.title = Gîa into vèrso antiorâio-page_rotate_ccw_label = Gîa into vèrso antiorâio-page_rotate_cw.title = Gîa into vèrso orâio-page_rotate_cw_label = Gîa into vèrso orâio-tools.title = Struménti-tools_label = Struménti-password_label = Dìmme a paròlla segrêta pe arvî sto file PDF.-password_invalid = Paròlla segrêta sbaliâ. Prêuva tórna.-password_ok = Va bén-password_cancel = Anùlla+first_page.title = Vanni a-a primma pagina+first_page_label = Vanni a-a primma pagina+last_page.title = Vanni a l'urtima pagina+last_page_label = Vanni a l'urtima pagina+page_rotate_ccw.title = Gia into verso antioraio+page_rotate_ccw_label = Gia into verso antioraio+page_rotate_cw.title = Gia into verso oraio+page_rotate_cw_label = Gia into verso oraio+tools.title = Strumenti+tools_label = Strumenti+password_label = Dimme a paròlla segreta pe arvî sto file PDF.+password_invalid = Paròlla segreta sbalia. Preuva torna.+password_ok = Va ben+password_cancel = Anulla-document_properties.title = Propietæ do documénto…-document_properties_label = Propietæ do documénto…-document_properties_file_name = Nómme file:-document_properties_file_size = Dimensción file:+document_properties.title = Propietæ do documento…+document_properties_label = Propietæ do documento…+document_properties_file_name = Nomme file:+document_properties_file_size = Dimenscion file:document_properties_kb = {{size_kb}} kB ({{size_b}} byte)document_properties_mb = {{size_kb}} MB ({{size_b}} byte)-document_properties_title = Tìtolo:-document_properties_author = Aotô:-document_properties_subject = Ogétto:-document_properties_keywords = Paròlle ciâve:-document_properties_creation_date = Dæta creaçión:-document_properties_modification_date = Dæta cangiaménto:+document_properties_title = Titolo:+document_properties_author = Aoto:+document_properties_subject = Ogetto:+document_properties_keywords = Paròlle ciave:+document_properties_creation_date = Dæta creaçion:+document_properties_modification_date = Dæta cangiamento:document_properties_date_string = {{date}}, {{time}}-document_properties_creator = Aotô originâle:+document_properties_creator = Aotô originale:document_properties_producer = Produtô PDF:-document_properties_version = Versción PDF:-document_properties_page_count = Contézzo pàgine:+document_properties_version = Verscion PDF:+document_properties_page_count = Contezzo pagine:document_properties_close = Særa-hand_tool_enable.title = Atîva struménto màn-hand_tool_enable_label = Atîva struménto màn-hand_tool_disable.title = Dizatîva struménto màn-hand_tool_disable_label = Dizatîva struménto màn+hand_tool_enable.title = Ativa strumento man+hand_tool_enable_label = Ativa strumento man+hand_tool_disable.title = Dizativa strumento man+hand_tool_disable_label = Dizativa strumento mandiff --git a/data/libs/pdfjs/web/locale/lt/viewer.properties b/data/libs/pdfjs/web/locale/lt/viewer.propertiesindex c78f44301..81310c2cb 100644--- a/data/libs/pdfjs/web/locale/lt/viewer.properties+++ b/data/libs/pdfjs/web/locale/lt/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Dokumento savybės…document_properties_label=Dokumento savybės…document_properties_file_name=Failo vardas:document_properties_file_size=Failo dydis:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} B)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} B)document_properties_title=Antraštė:document_properties_author=Autorius:@@ -75,6 +79,8 @@ document_properties_subject=Tema:document_properties_keywords=Reikšminiai žodžiai:document_properties_creation_date=Sukūrimo data:document_properties_modification_date=Modifikavimo data:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Kūrėjas:document_properties_producer=PDF generatorius:diff --git a/data/libs/pdfjs/web/locale/lv/viewer.properties b/data/libs/pdfjs/web/locale/lv/viewer.propertiesindex ba57762e1..1418687c4 100644--- a/data/libs/pdfjs/web/locale/lv/viewer.properties+++ b/data/libs/pdfjs/web/locale/lv/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Dokumenta iestatījumi…document_properties_label=Dokumenta iestatījumi…document_properties_file_name=Faila nosaukums:document_properties_file_size=Faila izmērs:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} biti)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} biti)document_properties_title=Nosaukums:document_properties_author=Autors:@@ -75,6 +79,8 @@ document_properties_subject=Tēma:document_properties_keywords=Atslēgas vārdi:document_properties_creation_date=Izveides datums:document_properties_modification_date=LAbošanas datums:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Radītājs:document_properties_producer=PDF producents:diff --git a/data/libs/pdfjs/web/locale/mai/viewer.properties b/data/libs/pdfjs/web/locale/mai/viewer.propertiesindex cebcd75e3..42aad19fe 100644--- a/data/libs/pdfjs/web/locale/mai/viewer.properties+++ b/data/libs/pdfjs/web/locale/mai/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=दस्तावेज़ विशेषता...document_properties_label=दस्तावेज़ विशेषता...document_properties_file_name=फाइल नाम:document_properties_file_size=फ़ाइल आकार:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} बाइट)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} बाइट)document_properties_title=शीर्षक:document_properties_author=लेखकः@@ -75,7 +79,9 @@ document_properties_subject=विषयdocument_properties_keywords=बीजशब्दdocument_properties_creation_date=निर्माण तिथि:document_properties_modification_date=संशोधन दिनांक:-document_properties_date_string={{date}}, {{time}}+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.+document_properties_date_string=तिथि/समयdocument_properties_creator=सृजक:document_properties_producer=PDF उत्पादक:document_properties_version=PDF संस्करण:@@ -142,14 +148,12 @@ page_scale_auto=स्वचालित जूमpage_scale_actual=सही आकार# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a# numerical scale value.-page_scale_percent={{scale}}%# Loading indicator messagesloading_error_indicator=त्रुटिloading_error=पीडीएफ लोड करैत समय एकटा त्रुटि भेल.invalid_file_error=अमान्य अथवा भ्रष्ट PDF फाइल.missing_file_error=अनुपस्थित PDF फाइल.-unexpected_response_error=अप्रत्याशित सर्वर अनुक्रिया.# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.# "{{type}}" will be replaced with an annotation type from a list defined indiff --git a/data/libs/pdfjs/web/locale/ml/viewer.properties b/data/libs/pdfjs/web/locale/ml/viewer.propertiesindex 1e17a8a84..27fa99b52 100644--- a/data/libs/pdfjs/web/locale/ml/viewer.properties+++ b/data/libs/pdfjs/web/locale/ml/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=രേഖയുടെ വിശേഷതകള്..document_properties_label=രേഖയുടെ വിശേഷതകള്...document_properties_file_name=ഫയലിന്റെ പേര്:document_properties_file_size=ഫയലിന്റെ വലിപ്പം:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} കെബി ({{size_b}} ബൈറ്റുകള്)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} എംബി ({{size_b}} ബൈറ്റുകള്)document_properties_title=തലക്കെട്ട്\u0020document_properties_author=രചയിതാവ്:@@ -75,6 +79,8 @@ document_properties_subject=വിഷയം:document_properties_keywords=കീവേര്ഡുകള്:document_properties_creation_date=പൂര്ത്തിയാകുന്ന തീയതി:document_properties_modification_date=മാറ്റം വരുത്തിയ തീയതി:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=സൃഷ്ടികര്ത്താവ്:document_properties_producer=പിഡിഎഫ് പ്രൊഡ്യൂസര്:diff --git a/data/libs/pdfjs/web/locale/mn/viewer.properties b/data/libs/pdfjs/web/locale/mn/viewer.propertiesindex f0366444a..dfa1d6ddd 100644--- a/data/libs/pdfjs/web/locale/mn/viewer.properties+++ b/data/libs/pdfjs/web/locale/mn/viewer.properties@@ -25,6 +25,17 @@ open_file_label=Нээ# Secondary toolbar and context menu++# Document properties dialog box+document_properties_file_name=Файлын нэр:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.+document_properties_title=Гарчиг:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.+# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are# tooltips)@@ -43,7 +54,6 @@ find_not_found=Олдсонгүй# Error panel labelserror_more_info=Нэмэлт мэдээлэл-error_close=Хаа# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be# replaced by the PDF.JS version and build ID.# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an@@ -54,6 +64,8 @@ error_close=Хаа# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number# Predefined zoom values+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=Алдаа@@ -62,4 +74,6 @@ loading_error_indicator=Алдаа# "{{type}}" will be replaced with an annotation type from a list defined in# the PDF spec (32000-1:2008 Table 169 – Annotation types).# Some common types are e.g.: "Check", "Text", "Comment", "Note"+password_ok=OK+password_cancel=Цуцалdiff --git a/data/libs/pdfjs/web/locale/mr/viewer.properties b/data/libs/pdfjs/web/locale/mr/viewer.propertiesindex a37456b0f..417c6d4c1 100644--- a/data/libs/pdfjs/web/locale/mr/viewer.properties+++ b/data/libs/pdfjs/web/locale/mr/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=दस्तऐवज गुणधर्म…document_properties_label=दस्तऐवज गुणधर्म…document_properties_file_name=फाइलचे नाव:document_properties_file_size=फाइल आकार:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} बाइट्स)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} बाइट्स)document_properties_title=शिर्षक:document_properties_author=लेखक:@@ -75,6 +79,8 @@ document_properties_subject=विषय:document_properties_keywords=मुख्यशब्द:document_properties_creation_date=निर्माण दिनांक:document_properties_modification_date=दुरूस्ती दिनांक:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=निर्माता:document_properties_producer=PDF निर्माता:diff --git a/data/libs/pdfjs/web/locale/ms/viewer.properties b/data/libs/pdfjs/web/locale/ms/viewer.propertiesindex fd15e5d00..d5e8dec38 100644--- a/data/libs/pdfjs/web/locale/ms/viewer.properties+++ b/data/libs/pdfjs/web/locale/ms/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Ciri Dokumen…document_properties_label=Ciri Dokumen…document_properties_file_name=Nama fail:document_properties_file_size=Saiz fail:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bait)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bait)document_properties_title=Tajuk:document_properties_author=Pengarang:@@ -75,6 +79,8 @@ document_properties_subject=Subjek:document_properties_keywords=Kata kunci:document_properties_creation_date=Masa Dicipta:document_properties_modification_date=Tarikh Ubahsuai:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Pencipta:document_properties_producer=Pengeluar PDF:diff --git a/data/libs/pdfjs/web/locale/my/viewer.properties b/data/libs/pdfjs/web/locale/my/viewer.propertiesindex 18c69e936..2723a944f 100644--- a/data/libs/pdfjs/web/locale/my/viewer.properties+++ b/data/libs/pdfjs/web/locale/my/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=မှတ်တမ်းမှတ်ရာ ဂုဏdocument_properties_label=မှတ်တမ်းမှတ်ရာ ဂုဏ်သတ္တိများdocument_properties_file_name=ဖိုင် :document_properties_file_size=ဖိုင်ဆိုဒ် :+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} ကီလိုဘိုတ် ({size_kb}}ဘိုတ်)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=ခေါင်းစဉ် -document_properties_author=ရေးသားသူ:@@ -75,6 +79,8 @@ document_properties_subject=အကြောင်းအရာ:\u0020document_properties_keywords=သော့ချက် စာလုံး:document_properties_creation_date=ထုတ်လုပ်ရက်စွဲ:document_properties_modification_date=ပြင်ဆင်ရက်စွဲ:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=ဖန်တီးသူ:document_properties_producer=PDF ထုတ်လုပ်သူ:@@ -142,6 +148,7 @@ page_scale_auto=အလိုအလျောက် ချုံ့ချဲ့page_scale_actual=အမှန်တကယ်ရှိတဲ့ အရွယ်# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a# numerical scale value.+page_scale_percent={{scale}}%# Loading indicator messagesloading_error_indicator=အမှားdiff --git a/data/libs/pdfjs/web/locale/nl/viewer.properties b/data/libs/pdfjs/web/locale/nl/viewer.propertiesindex 50e4d1387..79895d26c 100644--- a/data/libs/pdfjs/web/locale/nl/viewer.properties+++ b/data/libs/pdfjs/web/locale/nl/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Documenteigenschappen…document_properties_label=Documenteigenschappen…document_properties_file_name=Bestandsnaam:document_properties_file_size=Bestandsgrootte:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Titel:document_properties_author=Auteur:@@ -75,6 +79,8 @@ document_properties_subject=Onderwerp:document_properties_keywords=Trefwoorden:document_properties_creation_date=Aanmaakdatum:document_properties_modification_date=Wijzigingsdatum:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Auteur:document_properties_producer=PDF-producent:diff --git a/data/libs/pdfjs/web/locale/nn-NO/viewer.properties b/data/libs/pdfjs/web/locale/nn-NO/viewer.propertiesindex 098e8228b..b3c808954 100644--- a/data/libs/pdfjs/web/locale/nn-NO/viewer.properties+++ b/data/libs/pdfjs/web/locale/nn-NO/viewer.properties@@ -72,7 +72,7 @@ document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Dokumenteigenskapar …document_properties_author=Forfattar:document_properties_subject=Emne:-document_properties_keywords=Nykelord:+document_properties_keywords=Stikkord:document_properties_creation_date=Dato oppretta:document_properties_modification_date=Dato endra:document_properties_date_string={{date}}, {{time}}diff --git a/data/libs/pdfjs/web/locale/nso/viewer.properties b/data/libs/pdfjs/web/locale/nso/viewer.propertiesindex 09923f593..02cc7d85f 100644--- a/data/libs/pdfjs/web/locale/nso/viewer.properties+++ b/data/libs/pdfjs/web/locale/nso/viewer.properties@@ -30,17 +30,30 @@ zoom_out_label=Bušetša ka garezoom_in.title=Godišetša ka ntlezoom_in_label=Godišetša ka ntlezoom.title=Godiša-print.title=Gatiša-print_label=Gatišapresentation_mode.title=Fetogela go mokgwa wa tlhagišopresentation_mode_label=Mokgwa wa tlhagišoopen_file.title=Bula faeleopen_file_label=Bula+print.title=Gatiša+print_label=Gatišadownload.title=Laolladownload_label=Laollabookmark.title=Pono ya bjale (kopiša le go bula lefasetereng le leswa)bookmark_label=Tebelelo ya gona bjale+# Secondary toolbar and context menu+++# Document properties dialog box+document_properties_file_name=Leina la faele:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.+document_properties_title=Thaetlele:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.+# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are# tooltips)@@ -61,12 +74,6 @@ thumb_page_title=Letlakala {{page}}# number.thumb_page_canvas=Khutšofatšo ya letlakala {{page}}-# Context menu-first_page.label=Eya letlakaleng la mathomo-last_page.label=Eya letlakaleng la mafelelo-page_rotate_cw.label=Dikološa go ya ka go la go ja-page_rotate_ccw.label=Dikološa go ya go la ntsogošo-# Find panel button title and messagesfind_label=Hwetša:find_previous.title=Hwetša tiragalo e fetilego ya sekafoko@@ -82,7 +89,6 @@ find_not_found=Sekafoko ga sa hwetšwa# Error panel labelserror_more_info=Tshedimošo e oketšegilegoerror_less_info=Tshedimošo ya tlasana-error_close=Tswalela# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be# replaced by the PDF.JS version and build ID.error_version_info=PDF.js v{{version}} (build: {{build}})@@ -103,6 +109,8 @@ page_scale_width=Bophara bja letlakalapage_scale_fit=Go lekana ga letlakalapage_scale_auto=Kgodišo ya maitirišopage_scale_actual=Bogolo bja kgonthe+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=Phošo@@ -110,14 +118,14 @@ loading_error=Go diregile phošo ge go hlahlelwa PDF.invalid_file_error=Faele ye e sa šomego goba e senyegilego ya PDF.missing_file_error=Faele yeo e sego gona ya PDF.-# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.# "{{type}}" will be replaced with an annotation type from a list defined in# the PDF spec (32000-1:2008 Table 169 – Annotation types).# Some common types are e.g.: "Check", "Text", "Comment", "Note"-text_annotation_type=[{{type}} Tlhaloso]-request_password=PDF e šireleditšwe ka lentšuphetišo:+text_annotation_type.alt=[{{type}} Tlhaloso]+password_ok=LOKILE+password_cancel=Khanselaprinting_not_supported=Temošo: Go gatiša ga go thekgwe ke praosara ye ka botlalo.printing_not_ready=Temošo: PDF ga ya hlahlelwa ka botlalo bakeng sa go gatišwa.web_fonts_disabled=Difonte tša wepe di šitišitšwe: ga e kgone go diriša difonte tša PDF tše khutišitšwego.-web_colors_disabled=Mebala ya wepe e šitišitšwe.diff --git a/data/libs/pdfjs/web/locale/oc/viewer.properties b/data/libs/pdfjs/web/locale/oc/viewer.propertiesindex a68637339..aa4457118 100644--- a/data/libs/pdfjs/web/locale/oc/viewer.properties+++ b/data/libs/pdfjs/web/locale/oc/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Proprietats del document...document_properties_label=Proprietats del document...document_properties_file_name=Nom del fichièr :document_properties_file_size=Talha del fichièr :+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} Ko ({{size_b}} octets)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} Mo ({{size_b}} octets)document_properties_title=Títol :document_properties_author=Autor :@@ -75,6 +79,8 @@ document_properties_subject=Subjècte :document_properties_keywords=Mots claus :document_properties_creation_date=Data de creacion :document_properties_modification_date=Data de modificacion :+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Creator :document_properties_producer=Aisina de conversion PDF :diff --git a/data/libs/pdfjs/web/locale/or/viewer.properties b/data/libs/pdfjs/web/locale/or/viewer.propertiesindex 39d296275..8258c5630 100644--- a/data/libs/pdfjs/web/locale/or/viewer.properties+++ b/data/libs/pdfjs/web/locale/or/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=ଦଲିଲ ଗୁଣଧର୍ମ…document_properties_label=ଦଲିଲ ଗୁଣଧର୍ମ…document_properties_file_name=ଫାଇଲ ନାମ:document_properties_file_size=ଫାଇଲ ଆକାର:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=ଶୀର୍ଷକ:document_properties_author=ଲେଖକ:@@ -75,6 +79,8 @@ document_properties_subject=ବିଷୟ:document_properties_keywords=ସୂଚକ ଶବ୍ଦ:document_properties_creation_date=ନିର୍ମାଣ ତାରିଖ:document_properties_modification_date=ପରିବର୍ତ୍ତନ ତାରିଖ:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=ନିର୍ମାତା:document_properties_producer=PDF ପ୍ରଯୋଜକ:@@ -140,6 +146,8 @@ page_scale_width=ପୃଷ୍ଠା ଓସାରpage_scale_fit=ପୃଷ୍ଠା ମେଳନpage_scale_auto=ସ୍ୱୟଂଚାଳିତ ଭାବରେ ଛୋଟବଡ଼ କରିବାpage_scale_actual=ପ୍ରକୃତ ଆକାର+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=ତ୍ରୁଟିdiff --git a/data/libs/pdfjs/web/locale/pt-BR/viewer.properties b/data/libs/pdfjs/web/locale/pt-BR/viewer.propertiesindex b295275f0..6f0dbfa75 100644--- a/data/libs/pdfjs/web/locale/pt-BR/viewer.properties+++ b/data/libs/pdfjs/web/locale/pt-BR/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Propriedades do documento…document_properties_label=Propriedades do documento…document_properties_file_name=Nome do arquivo:document_properties_file_size=Tamanho do arquivo:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Título:document_properties_author=Autor:@@ -75,11 +79,13 @@ document_properties_subject=Assunto:document_properties_keywords=Palavras-chave:document_properties_creation_date=Data da criação:document_properties_modification_date=Data da modificação:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Criação:document_properties_producer=Criador do PDF:document_properties_version=Versão do PDF:-document_properties_page_count=Contagem de páginas:+document_properties_page_count=Número de páginas:document_properties_close=Fechar# Tooltips and alt text for side panel toolbar buttonsdiff --git a/data/libs/pdfjs/web/locale/pt-PT/viewer.properties b/data/libs/pdfjs/web/locale/pt-PT/viewer.propertiesindex 9b29039c9..744602061 100644--- a/data/libs/pdfjs/web/locale/pt-PT/viewer.properties+++ b/data/libs/pdfjs/web/locale/pt-PT/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Propriedades do documento…document_properties_label=Propriedades do documento…document_properties_file_name=Nome do ficheiro:document_properties_file_size=Tamanho do ficheiro:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=Título:document_properties_author=Autor:@@ -75,10 +79,12 @@ document_properties_subject=Assunto:document_properties_keywords=Palavras-chave:document_properties_creation_date=Data de criação:document_properties_modification_date=Data de modificação:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Criador:document_properties_producer=Produtor de PDF:-document_properties_version=versão do PDF:+document_properties_version=Versão do PDF:document_properties_page_count=N.º de páginas:document_properties_close=Fechardiff --git a/data/libs/pdfjs/web/locale/rm/viewer.properties b/data/libs/pdfjs/web/locale/rm/viewer.propertiesindex 69a20d930..5564738e4 100644--- a/data/libs/pdfjs/web/locale/rm/viewer.properties+++ b/data/libs/pdfjs/web/locale/rm/viewer.properties@@ -1,6 +1,16 @@-# This Source Code Form is subject to the terms of the Mozilla Public-# License, v. 2.0. If a copy of the MPL was not distributed with this-# file, You can obtain one at http://mozilla.org/MPL/2.0/.+# Copyright 2012 Mozilla Foundation+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.# Main toolbar buttons (tooltips and alt text for images)previous.title=Pagina precedentadiff --git a/data/libs/pdfjs/web/locale/ro/viewer.properties b/data/libs/pdfjs/web/locale/ro/viewer.propertiesindex e93cc4910..69804a190 100644--- a/data/libs/pdfjs/web/locale/ro/viewer.properties+++ b/data/libs/pdfjs/web/locale/ro/viewer.properties@@ -38,8 +38,8 @@ print.title=Tipăreșteprint_label=Tipăreștedownload.title=Descarcădownload_label=Descarcă-bookmark.title=Vizualizare curentă (copiați sau deschideți într-o fereastră nouă)-bookmark_label=Vizualizare curentă+bookmark.title=Vizualizare actuală (copiați sau deschideți într-o fereastră nouă)+bookmark_label=Vizualizare actuală# Secondary toolbar and context menutools.title=Unelte@@ -67,14 +67,20 @@ document_properties.title=Proprietățile documentului…document_properties_label=Proprietățile documentului…document_properties_file_name=Nume fișier:document_properties_file_size=Dimensiune fișier:-document_properties_kb={{size_kb}} KB ({{size_b}} biți)-document_properties_mb={{size_mb}} MB ({{size_b}} biți)+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+document_properties_kb={{size_kb}} KB ({{size_b}} byți)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.+document_properties_mb={{size_mb}} MB ({{size_b}} byți)document_properties_title=Titlu:document_properties_author=Autor:document_properties_subject=Subiect:document_properties_keywords=Cuvinte cheie:document_properties_creation_date=Data creării:document_properties_modification_date=Data modificării:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Autor:document_properties_producer=Producător PDF:@@ -111,7 +117,7 @@ find_previous_label=Anteriorfind_next.title=Găstește următoarea instanță în frazăfind_next_label=Următorfind_highlight=Evidențiază aparițiile-find_match_case_label=Potrivire litere+find_match_case_label=Potrivește literele mari și micifind_reached_top=Am ajuns la începutul documentului, continuă de la sfârșitfind_reached_bottom=Am ajuns la sfârșitul documentului, continuă de la începutfind_not_found=Nu s-a găsit textul@@ -157,11 +163,11 @@ unexpected_response_error=Răspuns neașteptat de la server.# Some common types are e.g.: "Check", "Text", "Comment", "Note"text_annotation_type.alt=[{{type}} Adnotare]password_label=Introduceți parola pentru a deschide acest fișier PDF.-password_invalid=Parolă greșită. Vă rugăm încercați din nou.+password_invalid=Parolă greșită. Vă rugăm să încercați din nou.password_ok=Okpassword_cancel=Renunță-printing_not_supported=Atenție: Tipărirea nu este suportată în totalitate de acest navigator.+printing_not_supported=Atenție: Tipărirea nu este suportată în totalitate de acest browser.printing_not_ready=Atenție: Fișierul PDF nu este încărcat complet pentru tipărire.web_fonts_disabled=Fonturile web sunt dezactivate: nu pot utiliza fonturile PDF încorporate.-document_colors_disabled=Documentele PDF nu sunt autorizate să folosească propriile culori: 'Permite paginilor să aleagă propriile culori' este dezactivată în navigator.+document_colors_disabled=Documentele PDF nu sunt autorizate să folosească propriile culori: 'Permite paginilor să aleagă propriile culori' este dezactivată în browser.diff --git a/data/libs/pdfjs/web/locale/rw/viewer.properties b/data/libs/pdfjs/web/locale/rw/viewer.propertiesindex 97681016a..7858fe644 100644--- a/data/libs/pdfjs/web/locale/rw/viewer.properties+++ b/data/libs/pdfjs/web/locale/rw/viewer.properties@@ -27,7 +27,13 @@ open_file_label=Gufungura# Document properties dialog box+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_title=Umutwe:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings arediff --git a/data/libs/pdfjs/web/locale/sah/viewer.properties b/data/libs/pdfjs/web/locale/sah/viewer.propertiesindex 1b844d68f..b35dcfff2 100644--- a/data/libs/pdfjs/web/locale/sah/viewer.properties+++ b/data/libs/pdfjs/web/locale/sah/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Докумуон туруоруулара...document_properties_label=Докумуон туруоруулара...\u0020document_properties_file_name=Билэ аата:document_properties_file_size=Билэ кээмэйэ:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} КБ ({{size_b}} баайт)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} МБ ({{size_b}} баайт)document_properties_title=Баһа:document_properties_author=Ааптар:@@ -75,6 +79,8 @@ document_properties_subject=Тиэмэ:document_properties_keywords=Күлүүс тыл:document_properties_creation_date=Оҥоһуллубут кэмэ:document_properties_modification_date=Уларытыллыбыт кэмэ:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_producer=PDF оҥорооччу:document_properties_version=PDF барыла:@@ -139,6 +145,8 @@ page_scale_width=Сирэй кэтитинэнpage_scale_fit=Сирэй кээмэйинэнpage_scale_auto=Аптамаатынанpage_scale_actual=Дьиҥнээх кээмэйэ+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=Алҕасdiff --git a/data/libs/pdfjs/web/locale/si/viewer.properties b/data/libs/pdfjs/web/locale/si/viewer.propertiesindex 060c12db8..80cae85f2 100644--- a/data/libs/pdfjs/web/locale/si/viewer.properties+++ b/data/libs/pdfjs/web/locale/si/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=ලේඛන වත්කම්...document_properties_label=ලේඛන වත්කම්...document_properties_file_name=ගොනු නම:document_properties_file_size=ගොනු ප්රමාණය:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} බයිට)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} බයිට)document_properties_title=සිරස්තලය:document_properties_author=කතෲ@@ -75,6 +79,8 @@ document_properties_subject=මාතෘකාව:document_properties_keywords=යතුරු වදන්:document_properties_creation_date=නිර්මිත දිනය:document_properties_modification_date=වෙනස්කල දිනය:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=නිර්මාපක:document_properties_producer=PDF නිශ්පාදක:diff --git a/data/libs/pdfjs/web/locale/sk/viewer.properties b/data/libs/pdfjs/web/locale/sk/viewer.propertiesindex 5a9d1a8a6..a410e56bb 100644--- a/data/libs/pdfjs/web/locale/sk/viewer.properties+++ b/data/libs/pdfjs/web/locale/sk/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Vlastnosti dokumentu…document_properties_label=Vlastnosti dokumentu…document_properties_file_name=Názov súboru:document_properties_file_size=Veľkosť súboru:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} kB ({{size_b}} bajtov)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bajtov)document_properties_title=Názov:document_properties_author=Autor:@@ -75,6 +79,8 @@ document_properties_subject=Predmet:document_properties_keywords=Kľúčové slová:document_properties_creation_date=Dátum vytvorenia:document_properties_modification_date=Dátum úpravy:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Vytvoril:document_properties_producer=Tvorca PDF:diff --git a/data/libs/pdfjs/web/locale/sl/viewer.properties b/data/libs/pdfjs/web/locale/sl/viewer.propertiesindex 734f9412f..047c0f9a8 100644--- a/data/libs/pdfjs/web/locale/sl/viewer.properties+++ b/data/libs/pdfjs/web/locale/sl/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Lastnosti dokumenta …document_properties_label=Lastnosti dokumenta …document_properties_file_name=Ime datoteke:document_properties_file_size=Velikost datoteke:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bajtov)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bajtov)document_properties_title=Ime:document_properties_author=Avtor:@@ -75,6 +79,8 @@ document_properties_subject=Tema:document_properties_keywords=Ključne besede:document_properties_creation_date=Datum nastanka:document_properties_modification_date=Datum spremembe:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Ustvaril:document_properties_producer=Izdelovalec PDF:diff --git a/data/libs/pdfjs/web/locale/son/viewer.properties b/data/libs/pdfjs/web/locale/son/viewer.propertiesindex 83e48dc8c..2c8460f1f 100644--- a/data/libs/pdfjs/web/locale/son/viewer.properties+++ b/data/libs/pdfjs/web/locale/son/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Takadda mayrawey…document_properties_label=Takadda mayrawey…document_properties_file_name=Tuku maa:document_properties_file_size=Tuku adadu:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb=KB {{size_kb}} (cebsu-ize {{size_b}})+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb=MB {{size_mb}} (cebsu-ize {{size_b}})document_properties_title=Tiiramaa:document_properties_author=Hantumkaw:@@ -75,6 +79,8 @@ document_properties_subject=Dalil:document_properties_keywords=Kufalkalimawey:document_properties_creation_date=Teeyan han:document_properties_modification_date=Barmayan han:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Teekaw:document_properties_producer=PDF berandikaw:diff --git a/data/libs/pdfjs/web/locale/sv-SE/viewer.properties b/data/libs/pdfjs/web/locale/sv-SE/viewer.propertiesindex 4c9d0401c..2236e77a8 100644--- a/data/libs/pdfjs/web/locale/sv-SE/viewer.properties+++ b/data/libs/pdfjs/web/locale/sv-SE/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Dokumentegenskaper…document_properties_label=Dokumentegenskaper…document_properties_file_name=Filnamn:document_properties_file_size=Filstorlek:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} kB ({{size_b}} byte)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} byte)document_properties_title=Titel:document_properties_author=Författare:@@ -75,6 +79,8 @@ document_properties_subject=Ämne:document_properties_keywords=Nyckelord:document_properties_creation_date=Skapades:document_properties_modification_date=Ändrades:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Skapare:document_properties_producer=PDF-producent:diff --git a/data/libs/pdfjs/web/locale/sw/viewer.properties b/data/libs/pdfjs/web/locale/sw/viewer.propertiesindex 88d0d3598..7f0f1b8c4 100644--- a/data/libs/pdfjs/web/locale/sw/viewer.properties+++ b/data/libs/pdfjs/web/locale/sw/viewer.properties@@ -45,7 +45,13 @@ bookmark_label=Mwonekano wa Sasa# Document properties dialog box+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_title=Kichwa:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings arediff --git a/data/libs/pdfjs/web/locale/ta-LK/viewer.properties b/data/libs/pdfjs/web/locale/ta-LK/viewer.propertiesindex 77c9f4f28..178b6199b 100644--- a/data/libs/pdfjs/web/locale/ta-LK/viewer.properties+++ b/data/libs/pdfjs/web/locale/ta-LK/viewer.properties@@ -27,6 +27,12 @@ open_file_label=திறக்க# Document properties dialog box+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are@@ -53,6 +59,8 @@ find_next.title=இந்த சொற்றொடரின் அடுத்# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number# Predefined zoom values+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesdiff --git a/data/libs/pdfjs/web/locale/ta/viewer.properties b/data/libs/pdfjs/web/locale/ta/viewer.propertiesindex 787e278e1..73f545d25 100644--- a/data/libs/pdfjs/web/locale/ta/viewer.properties+++ b/data/libs/pdfjs/web/locale/ta/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=ஆவண பண்புகள்...document_properties_label=ஆவண பண்புகள்...document_properties_file_name=கோப்பு பெயர்:document_properties_file_size=கோப்பின் அளவு:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} கிபை ({{size_b}} பைட்டுகள்)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} மெபை ({{size_b}} பைட்டுகள்)document_properties_title=தலைப்பு:document_properties_author=எழுதியவர்@@ -75,6 +79,8 @@ document_properties_subject=பொருள்:document_properties_keywords=முக்கிய வார்த்தைகள்:document_properties_creation_date=படைத்த தேதி :document_properties_modification_date=திருத்திய தேதி:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=உருவாக்குபவர்:document_properties_producer=பிடிஎஃப் தயாரிப்பாளர்:diff --git a/data/libs/pdfjs/web/locale/te/viewer.properties b/data/libs/pdfjs/web/locale/te/viewer.propertiesindex bd1ecac4f..df0edbe87 100644--- a/data/libs/pdfjs/web/locale/te/viewer.properties+++ b/data/libs/pdfjs/web/locale/te/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=పత్రము లక్షణాలు...document_properties_label=పత్రము లక్షణాలు...document_properties_file_name=దస్త్రం పేరు:document_properties_file_size=దస్త్రం పరిమాణం:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bytes)document_properties_title=శీర్షిక:document_properties_author=మూలకర్త:@@ -75,6 +79,8 @@ document_properties_subject=విషయం:document_properties_keywords=కీపదాలు:document_properties_creation_date=సృష్టించిన తేదీ:document_properties_modification_date=సవరించిన తేదీ:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=సృష్టికర్త:document_properties_producer=PDF ఉత్పాదకి:diff --git a/data/libs/pdfjs/web/locale/th/viewer.properties b/data/libs/pdfjs/web/locale/th/viewer.propertiesindex 543d8709b..24cdff316 100644--- a/data/libs/pdfjs/web/locale/th/viewer.properties+++ b/data/libs/pdfjs/web/locale/th/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=คุณสมบัติเอกสาร…document_properties_label=คุณสมบัติเอกสาร…document_properties_file_name=ชื่อแฟ้ม :document_properties_file_size=ขนาดแฟ้ม :+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} กิโลไบต์ ({{size_b}} ไบต์)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} เมกะไบต์ ({{size_b}} ไบต์)document_properties_title=หัวเรื่อง :document_properties_author=ผู้แต่ง :@@ -75,6 +79,8 @@ document_properties_subject=หัวข้อ :document_properties_keywords=คำสำคัญ :document_properties_creation_date=วันที่สร้าง :document_properties_modification_date=วันที่แก้ไข :+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=สร้างโดย :document_properties_producer=ผู้ผลิต PDF :diff --git a/data/libs/pdfjs/web/locale/tl/viewer.properties b/data/libs/pdfjs/web/locale/tl/viewer.propertiesindex 07d86eb14..e83cc87a9 100644--- a/data/libs/pdfjs/web/locale/tl/viewer.properties+++ b/data/libs/pdfjs/web/locale/tl/viewer.properties@@ -21,7 +21,7 @@ next.title=Sunod na Pahina# Do not translate "{{pageCount}}", it will be substituted with a number# representing the total number of pages.page_label=Pahina:-page_of=ng {{bilangngPahina}}+page_of=ng {{pageCount}}open_file.title=Magbukas ng fileopen_file_label=Buksan@@ -29,10 +29,18 @@ bookmark.title=Kasalukuyang tingin (kopyahin o buksan sa bagong window)bookmark_label=Kasalukuyang tingin# Secondary toolbar and context menu+tools.title=Mga Tool+tools_label=Mga Tool# Document properties dialog box+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_title=Pamagat:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are@@ -45,12 +53,13 @@ findbar_label=Hanapin# Thumbnails panel item (tooltip and alt text for images)# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page# number.-thumb_page_title=Pahina {{pahina}}+thumb_page_title=Pahina {{page}}# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page# number.-thumb_page_canvas=Thumbnail ng Pahina {{pahina}}+thumb_page_canvas=Thumbnail ng Pahina {{page}}# Find panel button title and messages+find_highlight=I-highlight lahat# Error panel labelserror_more_info=Maraming Inpormasyon@@ -64,13 +73,15 @@ error_message=Mensahe: {{message}}# trace.# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number-error_line=Linya: { { linya } }+error_line=Linya: {{line}}rendering_error=May naganap na pagkakamali habang pagsasalin sa pahina.# Predefined zoom valuespage_scale_width=Haba ng Pahinapage_scale_fit=ang pahina ay angkoppage_scale_auto=awtomatikong pag-imbulog+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error=May maling nangyari habang kinakarga ang PDF.diff --git a/data/libs/pdfjs/web/locale/tn/viewer.properties b/data/libs/pdfjs/web/locale/tn/viewer.propertiesindex 702d557c0..3c9b50312 100644--- a/data/libs/pdfjs/web/locale/tn/viewer.properties+++ b/data/libs/pdfjs/web/locale/tn/viewer.properties@@ -31,7 +31,13 @@ hand_tool_disable_label=Thibela go dira ga sediriswa sa seatla# Document properties dialog boxdocument_properties_file_name=Leina la faele:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_title=Leina:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings arediff --git a/data/libs/pdfjs/web/locale/tr/viewer.properties b/data/libs/pdfjs/web/locale/tr/viewer.propertiesindex 750501bcd..256123efd 100644--- a/data/libs/pdfjs/web/locale/tr/viewer.properties+++ b/data/libs/pdfjs/web/locale/tr/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Belge özellikleri…document_properties_label=Belge özellikleri…document_properties_file_name=Dosya adı:document_properties_file_size=Dosya boyutu:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} bayt)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} bayt)document_properties_title=Başlık:document_properties_author=Yazar:@@ -75,6 +79,8 @@ document_properties_subject=Konu:document_properties_keywords=Anahtar kelimeler:document_properties_creation_date=Oluturma tarihi:document_properties_modification_date=Değiştirme tarihi:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}} {{time}}document_properties_creator=Oluşturan:document_properties_producer=PDF üreticisi:@@ -117,7 +123,7 @@ find_reached_bottom=Belgenin sonuna ulaşıldı, başından devam edildifind_not_found=Eşleşme bulunamadı# Error panel labels-error_more_info=Daha fazla bilgi+error_more_info=Daha fazla bilgi alerror_less_info=Daha az bilgierror_close=Kapat# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will bediff --git a/data/libs/pdfjs/web/locale/uk/viewer.properties b/data/libs/pdfjs/web/locale/uk/viewer.propertiesindex 57e986704..4f53bb336 100644--- a/data/libs/pdfjs/web/locale/uk/viewer.properties+++ b/data/libs/pdfjs/web/locale/uk/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Властивості документа…document_properties_label=Властивості документа…document_properties_file_name=Назва файла:document_properties_file_size=Розмір файла:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} КБ ({{size_b}} bytes)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} МБ ({{size_b}} bytes)document_properties_title=Заголовок:document_properties_author=Автор:@@ -75,6 +79,8 @@ document_properties_subject=Тема:document_properties_keywords=Ключові слова:document_properties_creation_date=Дата створення:document_properties_modification_date=Дата зміни:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Створено:document_properties_producer=Виробник PDF:diff --git a/data/libs/pdfjs/web/locale/vi/viewer.properties b/data/libs/pdfjs/web/locale/vi/viewer.propertiesindex bc5729273..8fc2807ca 100644--- a/data/libs/pdfjs/web/locale/vi/viewer.properties+++ b/data/libs/pdfjs/web/locale/vi/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Thuộc tính của tài liệu…document_properties_label=Thuộc tính của tài liệu…document_properties_file_name=Tên tập tin:document_properties_file_size=Kích thước:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} byte)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} byte)document_properties_title=Tiêu đề:document_properties_author=Tác giả:@@ -75,6 +79,8 @@ document_properties_subject=Chủ đề:document_properties_keywords=Từ khóa:document_properties_creation_date=Ngày tạo:document_properties_modification_date=Ngày sửa đổi:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Người tạo:document_properties_producer=Phần mềm tạo PDF:@@ -130,7 +136,7 @@ error_message=Thông điệp: {{message}}# trace.error_stack=Stack: {{stack}}# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename-error_file=Tệp: {{file}}+error_file=Tập tin: {{file}}# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line numbererror_line=Dòng: {{line}}rendering_error=Lỗi khi hiển thị trang.diff --git a/data/libs/pdfjs/web/locale/wo/viewer.properties b/data/libs/pdfjs/web/locale/wo/viewer.propertiesindex 3a9a4f992..1e70845b6 100644--- a/data/libs/pdfjs/web/locale/wo/viewer.properties+++ b/data/libs/pdfjs/web/locale/wo/viewer.properties@@ -45,7 +45,13 @@ bookmark_label=Wone bi feeñ# Document properties dialog box+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_title=Bopp:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings arediff --git a/data/libs/pdfjs/web/locale/xh/viewer.properties b/data/libs/pdfjs/web/locale/xh/viewer.propertiesindex 36cd2cf75..3cc2317d6 100644--- a/data/libs/pdfjs/web/locale/xh/viewer.properties+++ b/data/libs/pdfjs/web/locale/xh/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=Iipropati zoxwebhu…document_properties_label=Iipropati zoxwebhu…document_properties_file_name=Igama lefayile:document_properties_file_size=Isayizi yefayile:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB (iibhayiti{{size_b}})+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB (iibhayithi{{size_b}})document_properties_title=Umxholo:document_properties_author=Umbhali:@@ -75,6 +79,8 @@ document_properties_subject=Umbandela:document_properties_keywords=Amagama aphambili:document_properties_creation_date=Umhla wokwenziwa kwayo:document_properties_modification_date=Umhla wokulungiswa kwayo:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=Umntu oyenzileyo:document_properties_producer=Umvelisi we-PDF:@@ -142,7 +148,7 @@ page_scale_auto=Ukwandisa/Ukunciphisa Ngokwayopage_scale_actual=Ubungakanani bokwenene# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a# numerical scale value.-page_scale_percent={{umlinganiselo}}%+page_scale_percent={{scale}}%# Loading indicator messagesloading_error_indicator=Imposisodiff --git a/data/libs/pdfjs/web/locale/zh-CN/viewer.properties b/data/libs/pdfjs/web/locale/zh-CN/viewer.propertiesindex 6ec25f7ac..038668138 100644--- a/data/libs/pdfjs/web/locale/zh-CN/viewer.properties+++ b/data/libs/pdfjs/web/locale/zh-CN/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=文档属性…document_properties_label=文档属性…document_properties_file_name=文件名:document_properties_file_size=文件大小:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB ({{size_b}} 字节)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB ({{size_b}} 字节)document_properties_title=标题:document_properties_author=作者:@@ -75,6 +79,8 @@ document_properties_subject=主题:document_properties_keywords=关键词:document_properties_creation_date=创建日期:document_properties_modification_date=修改日期:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=创建者:document_properties_producer=PDF 制作者:diff --git a/data/libs/pdfjs/web/locale/zh-TW/viewer.properties b/data/libs/pdfjs/web/locale/zh-TW/viewer.propertiesindex 11f20d71a..13e884bd7 100644--- a/data/libs/pdfjs/web/locale/zh-TW/viewer.properties+++ b/data/libs/pdfjs/web/locale/zh-TW/viewer.properties@@ -67,7 +67,11 @@ document_properties.title=文件內容…document_properties_label=文件內容…document_properties_file_name=檔案名稱:document_properties_file_size=檔案大小:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.document_properties_kb={{size_kb}} KB({{size_b}} 位元組)+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.document_properties_mb={{size_mb}} MB({{size_b}} 位元組)document_properties_title=標題:document_properties_author=作者:@@ -75,6 +79,8 @@ document_properties_subject=主旨:document_properties_keywords=關鍵字:document_properties_creation_date=建立日期:document_properties_modification_date=修改日期:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.document_properties_date_string={{date}}, {{time}}document_properties_creator=建立者:document_properties_producer=PDF 產生器:diff --git a/data/libs/pdfjs/web/locale/zu/viewer.properties b/data/libs/pdfjs/web/locale/zu/viewer.propertiesindex bd7a08f6d..b19ca5fdf 100644--- a/data/libs/pdfjs/web/locale/zu/viewer.properties+++ b/data/libs/pdfjs/web/locale/zu/viewer.properties@@ -30,17 +30,30 @@ zoom_out_label=Hlehlisela emuvazoom_in.title=Sondeza eduzezoom_in_label=Sondeza eduzezoom.title=Lwiza-print.title=Phrinta-print_label=Phrintapresentation_mode.title=Guqulela kwindlela yesethulopresentation_mode_label=Indlelo yesethuloopen_file.title=Vula ifayelaopen_file_label=Vula+print.title=Phrinta+print_label=Phrintadownload.title=Landadownload_label=Landabookmark.title=Ukubuka kwamanje (kopisha noma vula kwifasitela elisha)bookmark_label=Ukubuka kwamanje+# Secondary toolbar and context menu+++# Document properties dialog box+document_properties_file_name=Igama lefayela:+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"+# will be replaced by the PDF file size in kilobytes, respectively in bytes.+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"+# will be replaced by the PDF file size in megabytes, respectively in bytes.+document_properties_title=Isihloko:+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"+# will be replaced by the creation/modification date, and time, of the PDF file.+# Tooltips and alt text for side panel toolbar buttons# (the _label strings are alt text for the buttons, the .title strings are# tooltips)@@ -61,12 +74,6 @@ thumb_page_title=Ikhasi {{page}}# number.thumb_page_canvas=Isithonjana sekhasi {{page}}-# Context menu-first_page.label=Yiya kwikhasi lokuqala-last_page.label=Yiya kwikhasi lokugcina-page_rotate_cw.label=Jikisela ngendlela yewashi-page_rotate_ccw.label=Jikisela kwelokudla-# Find panel button title and messagesfind_label=Tholafind_previous.title=Thola indawo eyandulelayo okuvela kuyo lomshwana@@ -82,7 +89,6 @@ find_not_found=Umshwana awutholakali# Error panel labelserror_more_info=Ukwaziswa Okwengeziweerror_less_info=Ukwazi okuncane-error_close=Vala# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be# replaced by the PDF.JS version and build ID.error_version_info=PDF.js v{{version}} (build: {{build}})@@ -103,6 +109,8 @@ page_scale_width=Ububanzi bekhasipage_scale_fit=Ukulingana kwekhasipage_scale_auto=Ukulwiza okuzenzekalelayopage_scale_actual=Usayizi Wangempela+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a+# numerical scale value.# Loading indicator messagesloading_error_indicator=Iphutha@@ -115,10 +123,10 @@ missing_file_error=Ifayela le-PDF elilahlekile.# the PDF spec (32000-1:2008 Table 169 – Annotation types).# Some common types are e.g.: "Check", "Text", "Comment", "Note"text_annotation_type.alt=[Amazwibela e-{{type}}]-request_password=I-PDF ivikeleke ngephasiwedi-invalid_password=Iphasiwedi Engavumelekile.+password_ok=Kulungile+password_cancel=Khanselaprinting_not_supported=Isixwayiso: Ukuphrinta akuxhasiwe yilesisiphequluli ngokugcwele.printing_not_ready=Isixwayiso: I-PDF ayikalayishwa ngokuphelele yiPhrinta.-web_fonts_disabled=Amafonti e-webhu akutshaziwe: ayikwazi ukusebenzisa amafonti abekiwe e-PDF.+web_fonts_disabled=Amafonti e-webhu akutshaziwe: ayikwazi ukusebenzisa amafonti abekiwe e-PDF.\u0020document_colors_disabled=Amadokhumenti we-PDF awavumelekile ukusebenzisa imibalo yayo: 'Vumela amakhasi ukukhetha imibala yayo' ayisebenzi kusiphequluli.diff --git a/data/libs/pdfjs/web/viewer.css b/data/libs/pdfjs/web/viewer.cssindex 309a7001f..a83916693 100644--- a/data/libs/pdfjs/web/viewer.css+++ b/data/libs/pdfjs/web/viewer.css@@ -62,6 +62,24 @@.textLayer ::selection { background: rgb(0,0,255); }.textLayer ::-moz-selection { background: rgb(0,0,255); }+.textLayer .endOfContent {+ display: block;+ position: absolute;+ left: 0px;+ top: 100%;+ right: 0px;+ bottom: 0px;+ z-index: -1;+ cursor: default;+ -webkit-user-select: none;+ -ms-user-select: none;+ -moz-user-select: none;+}++.textLayer .endOfContent.active {+ top: 0px;+}+.annotationLayer .annotLink > a:hover {opacity: 0.2;@@ -491,15 +509,13 @@ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {}@-webkit-keyframes progressIndeterminate {- 0% { left: 0%; }- 50% { left: 100%; }- 100% { left: 100%; }+ 0% { left: -142px; }+ 100% { left: 0; }}@keyframes progressIndeterminate {- 0% { left: 0%; }- 50% { left: 100%; }- 100% { left: 100%; }+ 0% { left: -142px; }+ 100% { left: 0; }}#loadingBar .progress.indeterminate {@@ -508,19 +524,20 @@ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {transition: none;}-#loadingBar .indeterminate .glimmer {+#loadingBar .progress.indeterminate .glimmer {position: absolute;top: 0;left: 0;height: 100%;- width: 50px;+ width: calc(100% + 150px);- background-image: linear-gradient(to right, #999 0%, #fff 50%, #999 100%);- background-size: 100% 100%;- background-repeat: no-repeat;+ background: repeating-linear-gradient(135deg,+ #bbb 0, #999 5px,+ #999 45px, #ddd 55px,+ #ddd 95px, #bbb 100px);- -webkit-animation: progressIndeterminate 2s linear infinite;- animation: progressIndeterminate 2s linear infinite;+ -webkit-animation: progressIndeterminate 950ms linear infinite;+ animation: progressIndeterminate 950ms linear infinite;}.findbar, .secondaryToolbar {@@ -632,6 +649,13 @@ html[dir='ltr'] .doorHangerRight:before {margin-right: -9px;}+#findResultsCount {+ background-color: hsl(0, 0%, 85%);+ color: hsl(0, 0%, 32%);+ text-align: center;+ padding: 3px 4px;+}+#findMsg {font-style: italic;color: #A6B7D0;@@ -1346,10 +1370,12 @@ a:focus > .thumbnail > .thumbnailSelectionRing,padding: 3px 4px 0;}+html[dir='ltr'] .outlineWithDeepNesting > .outlineItem,html[dir='ltr'] .outlineItem > .outlineItems {margin-left: 20px;}+html[dir='rtl'] .outlineWithDeepNesting > .outlineItem,html[dir='rtl'] .outlineItem > .outlineItems {margin-right: 20px;}@@ -1359,6 +1385,8 @@ html[dir='rtl'] .outlineItem > .outlineItems {text-decoration: none;display: inline-block;min-width: 95%;+ min-width: calc(100% - 4px); /* Subtract the right padding (left, in RTL mode)+ of the container. */height: auto;margin-bottom: 1px;border-radius: 2px;@@ -1377,7 +1405,7 @@ html[dir='rtl'] .outlineItem > .outlineItems {}html[dir='ltr'] .outlineItem > a {- padding: 2px 0 5px 10px;+ padding: 2px 0 5px 4px;}html[dir='ltr'] .attachmentsItem > button {padding: 2px 0 3px 7px;@@ -1385,13 +1413,49 @@ html[dir='ltr'] .attachmentsItem > button {}html[dir='rtl'] .outlineItem > a {- padding: 2px 10px 5px 0;+ padding: 2px 4px 5px 0;}html[dir='rtl'] .attachmentsItem > button {padding: 2px 7px 3px 0;text-align: right;}+.outlineItemToggler {+ position: relative;+ height: 0;+ width: 0;+ color: hsla(0,0%,100%,.5);+}+.outlineItemToggler::before {+ content: url(images/treeitem-expanded.png);+ display: inline-block;+ position: absolute;+}+html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {+ content: url(images/treeitem-collapsed.png);+}+html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {+ content: url(images/treeitem-collapsed-rtl.png);+}+.outlineItemToggler.outlineItemsHidden ~ .outlineItems {+ display: none;+}+html[dir='ltr'] .outlineItemToggler {+ float: left;+}+html[dir='rtl'] .outlineItemToggler {+ float: right;+}+html[dir='ltr'] .outlineItemToggler::before {+ right: 4px;+}+html[dir='rtl'] .outlineItemToggler::before {+ left: 4px;+}++.outlineItemToggler:hover,+.outlineItemToggler:hover + a,+.outlineItemToggler:hover ~ .outlineItems,.outlineItem > a:hover,.attachmentsItem > button:hover {background-color: hsla(0,0%,100%,.02);@@ -1400,6 +1464,7 @@ html[dir='rtl'] .attachmentsItem > button {box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,0 0 1px hsla(0,0%,100%,.2) inset,0 0 1px hsla(0,0%,0%,.2);+ border-radius: 2px;color: hsla(0,0%,100%,.9);}@@ -1527,6 +1592,10 @@ html[dir='rtl'] .attachmentsItem > button {vertical-align: middle;}+.dialog :link {+ color: white;+}+#passwordOverlay > .dialog {text-align: center;}@@ -1819,6 +1888,25 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {.secondaryToolbarButton.documentProperties::before {content: url(images/[email protected]);}++ .outlineItemToggler::before {+ -webkit-transform: scale(0.5);+ transform: scale(0.5);+ top: -1px;+ content: url(images/[email protected]);+ }+ html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {+ content: url(images/[email protected]);+ }+ html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {+ content: url(images/[email protected]);+ }+ html[dir='ltr'] .outlineItemToggler::before {+ right: 0;+ }+ html[dir='rtl'] .outlineItemToggler::before {+ left: 0;+ }}@media print {diff --git a/data/libs/pdfjs/web/viewer.html b/data/libs/pdfjs/web/viewer.htmlindex 14416a4e6..211de6b85 100644--- a/data/libs/pdfjs/web/viewer.html+++ b/data/libs/pdfjs/web/viewer.html@@ -25,6 +25,7 @@ See https://github.com/adobe-type-tools/cmap-resources<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="google" content="notranslate">+ <meta http-equiv="X-UA-Compatible" content="IE=edge"><title>PDF.js viewer</title>@@ -90,6 +91,7 @@ See https://github.com/adobe-type-tools/cmap-resources<label for="findHighlightAll" class="toolbarLabel" data-l10n-id="find_highlight">Highlight all</label><input type="checkbox" id="findMatchCase" class="toolbarField" tabindex="95"><label for="findMatchCase" class="toolbarLabel" data-l10n-id="find_match_case_label">Match case</label>+ <span id="findResultsCount" class="toolbarLabel hidden"></span><span id="findMsg" class="toolbarLabel"></span></div> <!-- findbar -->diff --git a/data/libs/pdfjs/web/viewer.js b/data/libs/pdfjs/web/viewer.jsindex b8c6ff82a..135a2e5a8 100644--- a/data/libs/pdfjs/web/viewer.js+++ b/data/libs/pdfjs/web/viewer.js@@ -31,7 +31,6 @@ var DEFAULT_URL = 'compressed.tracemonkey-pldi-09.pdf';var DEFAULT_SCALE_DELTA = 1.1;var MIN_SCALE = 0.25;var MAX_SCALE = 10.0;-var VIEW_HISTORY_MEMORY = 20;var SCALE_SELECT_CONTAINER_PADDING = 8;var SCALE_SELECT_PADDING = 22;var PAGE_NUMBER_LOADING_INDICATOR = 'visiblePageIsLoading';@@ -104,6 +103,12 @@ var CustomStyle = (function CustomStyleClosure() {return CustomStyle;})();+var NullCharactersRegExp = /\x00/g;++function removeNullCharacters(str) {+ return str.replace(NullCharactersRegExp, '');+}+function getFileName(url) {var anchor = url.indexOf('#');var query = url.indexOf('?');@@ -136,22 +141,26 @@ function getOutputScale(ctx) {/*** Scrolls specified element into view of its parent.- * element {Object} The element to be visible.- * spot {Object} An object with optional top and left properties,- * specifying the offset from the top left edge.+ * @param {Object} element - The element to be visible.+ * @param {Object} spot - An object with optional top and left properties,+ * specifying the offset from the top left edge.+ * @param {boolean} skipOverflowHiddenElements - Ignore elements that have+ * the CSS rule `overflow: hidden;` set. The default is false.*/-function scrollIntoView(element, spot) {+function scrollIntoView(element, spot, skipOverflowHiddenElements) {// Assuming offsetParent is available (it's not available when viewer is in// hidden iframe or object). We have to scroll: if the offsetParent is not set// producing the error. See also animationStartedClosure.var parent = element.offsetParent;- var offsetY = element.offsetTop + element.clientTop;- var offsetX = element.offsetLeft + element.clientLeft;if (!parent) {console.error('offsetParent is not set -- cannot scroll');return;}- while (parent.clientHeight === parent.scrollHeight) {+ var checkOverflow = skipOverflowHiddenElements || false;+ var offsetY = element.offsetTop + element.clientTop;+ var offsetX = element.offsetLeft + element.clientLeft;+ while (parent.clientHeight === parent.scrollHeight ||+ (checkOverflow && getComputedStyle(parent).overflow === 'hidden')) {if (parent.dataset._scaleY) {offsetY /= parent.dataset._scaleY;offsetX /= parent.dataset._scaleX;@@ -256,6 +265,55 @@ function binarySearchFirstItem(items, condition) {return minIndex; /* === maxIndex */}+/**+ * Approximates float number as a fraction using Farey sequence (max order+ * of 8).+ * @param {number} x - Positive float number.+ * @returns {Array} Estimated fraction: the first array item is a numerator,+ * the second one is a denominator.+ */+function approximateFraction(x) {+ // Fast paths for int numbers or their inversions.+ if (Math.floor(x) === x) {+ return [x, 1];+ }+ var xinv = 1 / x;+ var limit = 8;+ if (xinv > limit) {+ return [1, limit];+ } else if (Math.floor(xinv) === xinv) {+ return [1, xinv];+ }++ var x_ = x > 1 ? xinv : x;+ // a/b and c/d are neighbours in Farey sequence.+ var a = 0, b = 1, c = 1, d = 1;+ // Limiting search to order 8.+ while (true) {+ // Generating next term in sequence (order of q).+ var p = a + c, q = b + d;+ if (q > limit) {+ break;+ }+ if (x_ <= p / q) {+ c = p; d = q;+ } else {+ a = p; b = q;+ }+ }+ // Select closest of the neighbours to x.+ if (x_ - a / b < c / d - x_) {+ return x_ === x ? [a, b] : [b, a];+ } else {+ return x_ === x ? [c, d] : [d, c];+ }+}++function roundToDivide(x, div) {+ var r = x % div;+ return r === 0 ? x : Math.round(x - r + div);+}+/*** Generic helper to find out what elements are visible within a scroll pane.*/@@ -452,7 +510,8 @@ var DEFAULT_PREFERENCES = {disableAutoFetch: false,disableFontFace: false,disableTextLayer: false,- useOnlyCssZoom: false+ useOnlyCssZoom: false,+ externalLinkTarget: 0,};@@ -827,6 +886,8 @@ var DownloadManager = (function DownloadManagerClosure() {+var DEFAULT_VIEW_HISTORY_CACHE_SIZE = 20;+/*** View History - This is a utility for saving various view parameters for* recently opened files.@@ -837,8 +898,9 @@ var DownloadManager = (function DownloadManagerClosure() {* - GENERIC or CHROME - uses localStorage, if it is available.*/var ViewHistory = (function ViewHistoryClosure() {- function ViewHistory(fingerprint) {+ function ViewHistory(fingerprint, cacheSize) {this.fingerprint = fingerprint;+ this.cacheSize = cacheSize || DEFAULT_VIEW_HISTORY_CACHE_SIZE;this.isInitializedPromiseResolved = false;this.initializedPromise =this._readFromStorage().then(function (databaseStr) {@@ -848,7 +910,7 @@ var ViewHistory = (function ViewHistoryClosure() {if (!('files' in database)) {database.files = [];}- if (database.files.length >= VIEW_HISTORY_MEMORY) {+ if (database.files.length >= this.cacheSize) {database.files.shift();}var index;@@ -930,6 +992,7 @@ var PDFFindBar = (function PDFFindBarClosure() {this.highlightAll = options.highlightAllCheckbox || null;this.caseSensitive = options.caseSensitiveCheckbox || null;this.findMsg = options.findMsg || null;+ this.findResultsCount = options.findResultsCount || null;this.findStatusIcon = options.findStatusIcon || null;this.findPreviousButton = options.findPreviousButton || null;this.findNextButton = options.findNextButton || null;@@ -992,7 +1055,8 @@ var PDFFindBar = (function PDFFindBarClosure() {return window.dispatchEvent(event);},- updateUIState: function PDFFindBar_updateUIState(state, previous) {+ updateUIState:+ function PDFFindBar_updateUIState(state, previous, matchCount) {var notFound = false;var findMsg = '';var status = '';@@ -1029,6 +1093,26 @@ var PDFFindBar = (function PDFFindBarClosure() {this.findField.setAttribute('data-status', status);this.findMsg.textContent = findMsg;++ this.updateResultsCount(matchCount);+ },++ updateResultsCount: function(matchCount) {+ if (!this.findResultsCount) {+ return; // no UI control is provided+ }++ // If there are no matches, hide the counter+ if (!matchCount) {+ this.findResultsCount.classList.add('hidden');+ return;+ }++ // Create the match counter+ this.findResultsCount.textContent = matchCount.toLocaleString();++ // Show the counter+ this.findResultsCount.classList.remove('hidden');},open: function PDFFindBar_open() {@@ -1085,6 +1169,7 @@ var PDFFindController = (function PDFFindControllerClosure() {this.active = false; // If active, find results will be highlighted.this.pageContents = []; // Stores the text for each page.this.pageMatches = [];+ this.matchCount = 0;this.selected = { // Currently selected match.pageIdx: -1,matchIdx: -1@@ -1162,7 +1247,8 @@ var PDFFindController = (function PDFFindControllerClosure() {var queryLen = query.length;if (queryLen === 0) {- return; // Do nothing: the matches should be wiped out already.+ // Do nothing: the matches should be wiped out already.+ return;}if (!caseSensitive) {@@ -1185,6 +1271,12 @@ var PDFFindController = (function PDFFindControllerClosure() {this.resumePageIdx = null;this.nextPageMatch();}++ // Update the matches count+ if (matches.length > 0) {+ this.matchCount += matches.length;+ this.updateUIResultsCount();+ }},extractText: function PDFFindController_extractText() {@@ -1276,6 +1368,7 @@ var PDFFindController = (function PDFFindControllerClosure() {this.hadMatch = false;this.resumePageIdx = null;this.pageMatches = [];+ this.matchCount = 0;var self = this;for (var i = 0; i < numPages; i++) {@@ -1371,10 +1464,12 @@ var PDFFindController = (function PDFFindControllerClosure() {pageIndex, index, elements, beginIdx, endIdx) {if (this.selected.matchIdx === index &&this.selected.pageIdx === pageIndex) {- scrollIntoView(elements[beginIdx], {+ var spot = {top: FIND_SCROLL_OFFSET_TOP,left: FIND_SCROLL_OFFSET_LEFT- });+ };+ scrollIntoView(elements[beginIdx], spot,+ /* skipOverflowHiddenElements = */ true);}},@@ -1430,6 +1525,15 @@ var PDFFindController = (function PDFFindControllerClosure() {}},+ updateUIResultsCount:+ function PDFFindController_updateUIResultsCount() {+ if (this.findBar === null) {+ throw new Error('PDFFindController is not initialized with a ' ++ 'PDFFindBar instance.');+ }+ this.findBar.updateResultsCount(this.matchCount);+ },+updateUIState: function PDFFindController_updateUIState(state, previous) {if (this.integratedFind) {FirefoxCom.request('updateFindControlState',@@ -1440,7 +1544,7 @@ var PDFFindController = (function PDFFindControllerClosure() {throw new Error('PDFFindController is not initialized with a ' +'PDFFindBar instance.');}- this.findBar.updateUIState(state, previous);+ this.findBar.updateUIState(state, previous, this.matchCount);}};return PDFFindController;@@ -1657,13 +1761,11 @@ var PDFLinkService = (function () {this.page = pageNumber; // simple page}if ('pagemode' in params) {- if (params.pagemode === 'thumbs' || params.pagemode === 'bookmarks' ||- params.pagemode === 'attachments') {- this.switchSidebarView((params.pagemode === 'bookmarks' ?- 'outline' : params.pagemode), true);- } else if (params.pagemode === 'none' && this.sidebarOpen) {- document.getElementById('sidebarToggle').click();- }+ var event = document.createEvent('CustomEvent');+ event.initCustomEvent('pagemode', true, true, {+ mode: params.pagemode,+ });+ this.pdfViewer.container.dispatchEvent(event);}} else if (/^\d+$/.test(hash)) { // page numberthis.page = hash;@@ -1792,38 +1894,74 @@ var PDFHistory = (function () {var self = this;window.addEventListener('popstate', function pdfHistoryPopstate(evt) {- evt.preventDefault();- evt.stopPropagation();-if (!self.historyUnlocked) {return;}if (evt.state) {// Move back/forward in the history.self._goTo(evt.state);- } else {- // Handle the user modifying the hash of a loaded document.- self.previousHash = window.location.hash.substring(1);+ return;+ }- // If the history is empty when the hash changes,- // update the previous entry in the browser history.- if (self.uid === 0) {- var previousParams = (self.previousHash && self.currentBookmark &&+ // If the state is not set, then the user tried to navigate to a+ // different hash by manually editing the URL and pressing Enter, or by+ // clicking on an in-page link (e.g. the "current view" link).+ // Save the current view state to the browser history.++ // Note: In Firefox, history.null could also be null after an in-page+ // navigation to the same URL, and without dispatching the popstate+ // event: https://bugzilla.mozilla.org/show_bug.cgi?id=1183881++ if (self.uid === 0) {+ // Replace the previous state if it was not explicitly set.+ var previousParams = (self.previousHash && self.currentBookmark &&self.previousHash !== self.currentBookmark) ?{hash: self.currentBookmark, page: self.currentPage} :{page: 1};- self.historyUnlocked = false;- self.allowHashChange = false;- window.history.back();- self._pushToHistory(previousParams, false, true);- window.history.forward();- self.historyUnlocked = true;- }- self._pushToHistory({hash: self.previousHash}, false, true);- self._updatePreviousBookmark();+ replacePreviousHistoryState(previousParams, function() {+ updateHistoryWithCurrentHash();+ });+ } else {+ updateHistoryWithCurrentHash();}}, false);++ function updateHistoryWithCurrentHash() {+ self.previousHash = window.location.hash.slice(1);+ self._pushToHistory({hash: self.previousHash}, false, true);+ self._updatePreviousBookmark();+ }++ function replacePreviousHistoryState(params, callback) {+ // To modify the previous history entry, the following happens:+ // 1. history.back()+ // 2. _pushToHistory, which calls history.replaceState( ... )+ // 3. history.forward()+ // Because a navigation via the history API does not immediately update+ // the history state, the popstate event is used for synchronization.+ self.historyUnlocked = false;++ // Suppress the hashchange event to avoid side effects caused by+ // navigating back and forward.+ self.allowHashChange = false;+ window.addEventListener('popstate', rewriteHistoryAfterBack);+ history.back();++ function rewriteHistoryAfterBack() {+ window.removeEventListener('popstate', rewriteHistoryAfterBack);+ window.addEventListener('popstate', rewriteHistoryAfterForward);+ self._pushToHistory(params, false, true);+ history.forward();+ }+ function rewriteHistoryAfterForward() {+ window.removeEventListener('popstate', rewriteHistoryAfterForward);+ self.allowHashChange = true;+ self.historyUnlocked = true;+ callback();+ }+ }+function pdfHistoryBeforeUnload() {var previousParams = self._getPreviousParams(null, true);if (previousParams) {@@ -1875,19 +2013,7 @@ var PDFHistory = (function () {if (!this.initialized) {return true;}- // If the current hash changes when moving back/forward in the history,- // this will trigger a 'popstate' event *as well* as a 'hashchange' event.- // Since the hash generally won't correspond to the exact the position- // stored in the history's state object, triggering the 'hashchange' event- // can thus corrupt the browser history.- //- // When the hash changes during a 'popstate' event, we *only* prevent the- // first 'hashchange' event and immediately reset allowHashChange.- // If it is not reset, the user would not be able to change the hash.-- var temp = this.allowHashChange;- this.allowHashChange = true;- return temp;+ return this.allowHashChange;},_updatePreviousBookmark: function pdfHistory_updatePreviousBookmark() {@@ -3568,11 +3694,11 @@ var PDFPageView = (function PDFPageViewClosure() {this.zoomLayer = null;this.reset();if (this.pdfPage) {- this.pdfPage.destroy();+ this.pdfPage.cleanup();}},- reset: function PDFPageView_reset(keepAnnotations) {+ reset: function PDFPageView_reset(keepZoomLayer, keepAnnotations) {if (this.renderTask) {this.renderTask.cancel();}@@ -3584,29 +3710,27 @@ var PDFPageView = (function PDFPageViewClosure() {div.style.height = Math.floor(this.viewport.height) + 'px';var childNodes = div.childNodes;- var currentZoomLayer = this.zoomLayer || null;+ var currentZoomLayerNode = (keepZoomLayer && this.zoomLayer) || null;var currentAnnotationNode = (keepAnnotations && this.annotationLayer &&this.annotationLayer.div) || null;for (var i = childNodes.length - 1; i >= 0; i--) {var node = childNodes[i];- if (currentZoomLayer === node || currentAnnotationNode === node) {+ if (currentZoomLayerNode === node || currentAnnotationNode === node) {continue;}div.removeChild(node);}div.removeAttribute('data-loaded');- if (keepAnnotations) {- if (this.annotationLayer) {- // Hide annotationLayer until all elements are resized- // so they are not displayed on the already-resized page- this.annotationLayer.hide();- }+ if (currentAnnotationNode) {+ // Hide annotationLayer until all elements are resized+ // so they are not displayed on the already-resized page+ this.annotationLayer.hide();} else {this.annotationLayer = null;}- if (this.canvas) {+ if (this.canvas && !currentZoomLayerNode) {// Zeroing the width and height causes Firefox to release graphics// resources immediately, which can greatly reduce memory consumption.this.canvas.width = 0;@@ -3645,19 +3769,29 @@ var PDFPageView = (function PDFPageViewClosure() {}}- if (this.canvas &&- (PDFJS.useOnlyCssZoom ||- (this.hasRestrictedScaling && isScalingRestricted))) {- this.cssTransform(this.canvas, true);- return;- } else if (this.canvas && !this.zoomLayer) {- this.zoomLayer = this.canvas.parentNode;- this.zoomLayer.style.position = 'absolute';+ if (this.canvas) {+ if (PDFJS.useOnlyCssZoom ||+ (this.hasRestrictedScaling && isScalingRestricted)) {+ this.cssTransform(this.canvas, true);++ var event = document.createEvent('CustomEvent');+ event.initCustomEvent('pagerendered', true, true, {+ pageNumber: this.id,+ cssTransform: true,+ });+ this.div.dispatchEvent(event);++ return;+ }+ if (!this.zoomLayer) {+ this.zoomLayer = this.canvas.parentNode;+ this.zoomLayer.style.position = 'absolute';+ }}if (this.zoomLayer) {this.cssTransform(this.zoomLayer.firstChild);}- this.reset(true);+ this.reset(/* keepZoomLayer = */ true, /* keepAnnotations = */ true);},/**@@ -3770,7 +3904,7 @@ var PDFPageView = (function PDFPageViewClosure() {var canvas = document.createElement('canvas');canvas.id = 'page' + this.id;canvasWrapper.appendChild(canvas);- if (this.annotationLayer) {+ if (this.annotationLayer && this.annotationLayer.div) {// annotationLayer needs to stay on topdiv.insertBefore(canvasWrapper, this.annotationLayer.div);} else {@@ -3782,7 +3916,7 @@ var PDFPageView = (function PDFPageViewClosure() {var outputScale = getOutputScale(ctx);if (PDFJS.useOnlyCssZoom) {- var actualSizeViewport = viewport.clone({ scale: CSS_UNITS });+ var actualSizeViewport = viewport.clone({scale: CSS_UNITS});// Use a scale that will make the canvas be the original intended size// of the page.outputScale.sx *= actualSizeViewport.width / viewport.width;@@ -3803,10 +3937,12 @@ var PDFPageView = (function PDFPageViewClosure() {}}- canvas.width = (Math.floor(viewport.width) * outputScale.sx) | 0;- canvas.height = (Math.floor(viewport.height) * outputScale.sy) | 0;- canvas.style.width = Math.floor(viewport.width) + 'px';- canvas.style.height = Math.floor(viewport.height) + 'px';+ var sfx = approximateFraction(outputScale.sx);+ var sfy = approximateFraction(outputScale.sy);+ canvas.width = roundToDivide(viewport.width * outputScale.sx, sfx[0]);+ canvas.height = roundToDivide(viewport.height * outputScale.sy, sfy[0]);+ canvas.style.width = roundToDivide(viewport.width, sfx[1]) + 'px';+ canvas.style.height = roundToDivide(viewport.height, sfy[1]) + 'px';// Add the viewport so it's known what it was originally drawn with.canvas._viewport = viewport;@@ -3815,9 +3951,9 @@ var PDFPageView = (function PDFPageViewClosure() {if (this.textLayerFactory) {textLayerDiv = document.createElement('div');textLayerDiv.className = 'textLayer';- textLayerDiv.style.width = canvas.style.width;- textLayerDiv.style.height = canvas.style.height;- if (this.annotationLayer) {+ textLayerDiv.style.width = canvasWrapper.style.width;+ textLayerDiv.style.height = canvasWrapper.style.height;+ if (this.annotationLayer && this.annotationLayer.div) {// annotationLayer needs to stay on topdiv.insertBefore(textLayerDiv, this.annotationLayer.div);} else {@@ -3866,6 +4002,12 @@ var PDFPageView = (function PDFPageViewClosure() {}if (self.zoomLayer) {+ // Zeroing the width and height causes Firefox to release graphics+ // resources immediately, which can greatly reduce memory consumption.+ var zoomLayerCanvas = self.zoomLayer.firstChild;+ zoomLayerCanvas.width = 0;+ zoomLayerCanvas.height = 0;+div.removeChild(self.zoomLayer);self.zoomLayer = null;}@@ -3877,7 +4019,8 @@ var PDFPageView = (function PDFPageViewClosure() {}var event = document.createEvent('CustomEvent');event.initCustomEvent('pagerendered', true, true, {- pageNumber: self.id+ pageNumber: self.id,+ cssTransform: false,});div.dispatchEvent(event);// This custom event is deprecated, and will be removed in the future,@@ -3914,9 +4057,9 @@ var PDFPageView = (function PDFPageViewClosure() {canvasContext: ctx,viewport: this.viewport,// intent: 'default', // === 'display'- continueCallback: renderContinueCallback};var renderTask = this.renderTask = this.pdfPage.render(renderContext);+ renderTask.onContinue = renderContinueCallback;this.renderTask.promise.then(function pdfPageRenderCallback() {@@ -4052,12 +4195,17 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() {this.viewport = options.viewport;this.textDivs = [];this.findController = options.findController || null;+ this._bindMouse();}TextLayerBuilder.prototype = {_finishRendering: function TextLayerBuilder_finishRendering() {this.renderingDone = true;+ var endOfContent = document.createElement('div');+ endOfContent.className = 'endOfContent';+ this.textLayerDiv.appendChild(endOfContent);+var event = document.createEvent('CustomEvent');event.initCustomEvent('textlayerrendered', true, true, {pageNumber: this.pageNumber@@ -4393,7 +4541,43 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() {this.matches = this.convertMatches(this.findController === null ?[] : (this.findController.pageMatches[this.pageIdx] || []));this.renderMatches(this.matches);- }+ },++ /**+ * Fixes text selection: adds additional div where mouse was clicked.+ * This reduces flickering of the content if mouse slowly dragged down/up.+ * @private+ */+ _bindMouse: function TextLayerBuilder_bindMouse() {+ var div = this.textLayerDiv;+ div.addEventListener('mousedown', function (e) {+ var end = div.querySelector('.endOfContent');+ if (!end) {+ return;+ }+ // On non-Firefox browsers, the selection will feel better if the height+ // of the endOfContent div will be adjusted to start at mouse click+ // location -- this will avoid flickering when selections moves up.+ // However it does not work when selection started on empty space.+ var adjustTop = e.target !== div;+ adjustTop = adjustTop && window.getComputedStyle(end).+ getPropertyValue('-moz-user-select') !== 'none';+ if (adjustTop) {+ var divBounds = div.getBoundingClientRect();+ var r = Math.max(0, (e.pageY - divBounds.top) / divBounds.height);+ end.style.top = (r * 100).toFixed(2) + '%';+ }+ end.classList.add('active');+ });+ div.addEventListener('mouseup', function (e) {+ var end = div.querySelector('.endOfContent');+ if (!end) {+ return;+ }+ end.style.top = '';+ end.classList.remove('active');+ });+ },};return TextLayerBuilder;})();@@ -5013,6 +5197,10 @@ var PDFViewer = (function pdfViewer() {*/scrollPageIntoView: function PDFViewer_scrollPageIntoView(pageNumber,dest) {+ if (!this.pdfDocument) {+ return;+ }+var pageView = this._pages[pageNumber - 1];if (this.isInPresentationMode) {@@ -5058,6 +5246,12 @@ var PDFViewer = (function pdfViewer() {case 'FitBH':y = dest[2];scale = 'page-width';+ // According to the PDF spec, section 12.3.2.2, a `null` value in the+ // parameter should maintain the position relative to the new page.+ if (y === null && this._location) {+ x = this._location.left;+ y = this._location.top;+ }break;case 'FitV':case 'FitBV':@@ -5195,7 +5389,7 @@ var PDFViewer = (function pdfViewer() {},get isChangingPresentationMode() {- return this.PresentationModeState === PresentationModeState.CHANGING;+ return this.presentationModeState === PresentationModeState.CHANGING;},get isHorizontalScrollbarEnabled() {@@ -5499,6 +5693,10 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {this.canvas.height = 0;delete this.canvas;}+ if (this.image) {+ this.image.removeAttribute('src');+ delete this.image;+ }},update: function PDFThumbnailView_update(rotation) {@@ -5519,28 +5717,53 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {_getPageDrawContext:function PDFThumbnailView_getPageDrawContext(noCtxScale) {var canvas = document.createElement('canvas');- canvas.id = this.renderingId;-- canvas.className = 'thumbnailImage';- canvas.setAttribute('aria-label', mozL10n.get('thumb_page_canvas',- {page: this.id}, 'Thumbnail of Page {{page}}'));-this.canvas = canvas;- this.div.setAttribute('data-loaded', true);- this.ring.appendChild(canvas);var ctx = canvas.getContext('2d');var outputScale = getOutputScale(ctx);+canvas.width = (this.canvasWidth * outputScale.sx) | 0;canvas.height = (this.canvasHeight * outputScale.sy) | 0;canvas.style.width = this.canvasWidth + 'px';canvas.style.height = this.canvasHeight + 'px';+if (!noCtxScale && outputScale.scaled) {ctx.scale(outputScale.sx, outputScale.sy);}++ var image = document.createElement('img');+ this.image = image;++ image.id = this.renderingId;+ image.className = 'thumbnailImage';+ image.setAttribute('aria-label', mozL10n.get('thumb_page_canvas',+ { page: this.id }, 'Thumbnail of Page {{page}}'));++ image.style.width = canvas.style.width;+ image.style.height = canvas.style.height;+return ctx;},+ /**+ * @private+ */+ _convertCanvasToImage: function PDFThumbnailView_convertCanvasToImage() {+ if (!this.canvas) {+ return;+ }+ this.image.src = this.canvas.toDataURL();++ this.div.setAttribute('data-loaded', true);+ this.ring.appendChild(this.image);++ // Zeroing the width and height causes Firefox to release graphics+ // resources immediately, which can greatly reduce memory consumption.+ this.canvas.width = 0;+ this.canvas.height = 0;+ delete this.canvas;+ },+draw: function PDFThumbnailView_draw() {if (this.renderingState !== RenderingStates.INITIAL) {console.error('Must be in new state before drawing');@@ -5570,6 +5793,7 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {return;}self.renderingState = RenderingStates.FINISHED;+ self._convertCanvasToImage();if (!error) {resolveRenderPromise(undefined);@@ -5594,10 +5818,10 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {var renderContext = {canvasContext: ctx,- viewport: drawViewport,- continueCallback: renderContinueCallback+ viewport: drawViewport};var renderTask = this.renderTask = this.pdfPage.render(renderContext);+ renderTask.onContinue = renderContinueCallback;renderTask.promise.then(function pdfPageRenderCallback() {@@ -5627,6 +5851,7 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {if (img.width <= 2 * canvas.width) {ctx.drawImage(img, 0, 0, img.width, img.height,0, 0, canvas.width, canvas.height);+ this._convertCanvasToImage();return;}// drawImage does an awful job of rescaling the image, doing it gradually.@@ -5651,6 +5876,7 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {}ctx.drawImage(reducedImage, 0, 0, reducedWidth, reducedHeight,0, 0, canvas.width, canvas.height);+ this._convertCanvasToImage();}};@@ -5862,6 +6088,7 @@ var PDFOutlineView = (function PDFOutlineViewClosure() {this.container = options.container;this.outline = options.outline;this.linkService = options.linkService;+ this.lastToggleIsShow = true;}PDFOutlineView.prototype = {@@ -5870,6 +6097,7 @@ var PDFOutlineView = (function PDFOutlineViewClosure() {while (container.firstChild) {container.removeChild(container.firstChild);}+ this.lastToggleIsShow = true;},/**@@ -5895,6 +6123,51 @@ var PDFOutlineView = (function PDFOutlineViewClosure() {};},+ /**+ * Prepend a button before an outline item which allows the user to toggle+ * the visibility of all outline items at that level.+ *+ * @private+ */+ _addToggleButton: function PDFOutlineView_addToggleButton(div) {+ var toggler = document.createElement('div');+ toggler.className = 'outlineItemToggler';+ toggler.onclick = function(event) {+ event.stopPropagation();+ toggler.classList.toggle('outlineItemsHidden');++ if (event.shiftKey) {+ var shouldShowAll = !toggler.classList.contains('outlineItemsHidden');+ this._toggleOutlineItem(div, shouldShowAll);+ }+ }.bind(this);+ div.insertBefore(toggler, div.firstChild);+ },++ /**+ * Toggle the visibility of the subtree of an outline item.+ *+ * @param {Element} root - the root of the outline (sub)tree.+ * @param {boolean} state - whether to show the outline (sub)tree. If false,+ * the outline subtree rooted at |root| will be collapsed.+ *+ * @private+ */+ _toggleOutlineItem: function PDFOutlineView_toggleOutlineItem(root, show) {+ this.lastToggleIsShow = show;+ var togglers = root.querySelectorAll('.outlineItemToggler');+ for (var i = 0, ii = togglers.length; i < ii; ++i) {+ togglers[i].classList[show ? 'remove' : 'add']('outlineItemsHidden');+ }+ },++ /**+ * Collapse or expand all subtrees of the outline.+ */+ toggleOutlineTree: function PDFOutlineView_toggleOutlineTree() {+ this._toggleOutlineItem(this.container, !this.lastToggleIsShow);+ },+render: function PDFOutlineView_render() {var outline = this.outline;var outlineCount = 0;@@ -5906,7 +6179,9 @@ var PDFOutlineView = (function PDFOutlineViewClosure() {return;}- var queue = [{ parent: this.container, items: this.outline }];+ var fragment = document.createDocumentFragment();+ var queue = [{ parent: fragment, items: this.outline }];+ var hasAnyNesting = false;while (queue.length > 0) {var levelData = queue.shift();for (var i = 0, len = levelData.items.length; i < len; i++) {@@ -5915,10 +6190,13 @@ var PDFOutlineView = (function PDFOutlineViewClosure() {div.className = 'outlineItem';var element = document.createElement('a');this._bindLink(element, item);- element.textContent = item.title;+ element.textContent = removeNullCharacters(item.title);div.appendChild(element);if (item.items.length > 0) {+ hasAnyNesting = true;+ this._addToggleButton(div);+var itemsDiv = document.createElement('div');itemsDiv.className = 'outlineItems';div.appendChild(itemsDiv);@@ -5929,6 +6207,11 @@ var PDFOutlineView = (function PDFOutlineViewClosure() {outlineCount++;}}+ if (hasAnyNesting) {+ this.container.classList.add('outlineWithDeepNesting');+ }++ this.container.appendChild(fragment);this._dispatchEvent(outlineCount);}@@ -6011,7 +6294,7 @@ var PDFAttachmentView = (function PDFAttachmentViewClosure() {div.className = 'attachmentsItem';var button = document.createElement('button');this._bindLink(button, item.content, filename);- button.textContent = filename;+ button.textContent = removeNullCharacters(filename);div.appendChild(button);this.container.appendChild(div);}@@ -6030,6 +6313,7 @@ var PDFViewerApplication = {initialized: false,fellback: false,pdfDocument: null,+ pdfLoadingTask: null,sidebarOpen: false,printing: false,/** @type {PDFViewer} */@@ -6104,6 +6388,7 @@ var PDFViewerApplication = {highlightAllCheckbox: document.getElementById('findHighlightAll'),caseSensitiveCheckbox: document.getElementById('findMatchCase'),findMsg: document.getElementById('findMsg'),+ findResultsCount: document.getElementById('findResultsCount'),findStatusIcon: document.getElementById('findStatusIcon'),findPreviousButton: document.getElementById('findPrevious'),findNextButton: document.getElementById('findNext'),@@ -6209,6 +6494,12 @@ var PDFViewerApplication = {}PDFJS.disableRange = value;}),+ Preferences.get('disableStream').then(function resolved(value) {+ if (PDFJS.disableStream === true) {+ return;+ }+ PDFJS.disableStream = value;+ }),Preferences.get('disableAutoFetch').then(function resolved(value) {PDFJS.disableAutoFetch = value;}),@@ -6220,12 +6511,24 @@ var PDFViewerApplication = {}),Preferences.get('useOnlyCssZoom').then(function resolved(value) {PDFJS.useOnlyCssZoom = value;- })+ }),+ Preferences.get('externalLinkTarget').then(function resolved(value) {+ if (PDFJS.isExternalLinkTargetSet()) {+ return;+ }+ PDFJS.externalLinkTarget = value;+ }),// TODO move more preferences and other async stuff here]).catch(function (reason) { });return initializedPromise.then(function () {- PDFViewerApplication.initialized = true;+ if (self.isViewerEmbedded && !PDFJS.isExternalLinkTargetSet()) {+ // Prevent external links from "replacing" the viewer,+ // when it's embedded in e.g. an iframe or an object.+ PDFJS.externalLinkTarget = PDFJS.LinkTarget.TOP;+ }++ self.initialized = true;});},@@ -6310,6 +6613,15 @@ var PDFViewerApplication = {return PDFJS.shadow(this, 'loadingBar', bar);},+ get supportedMouseWheelZoomModifierKeys() {+ var support = {+ ctrlKey: true,+ metaKey: true,+ };++ return PDFJS.shadow(this, 'supportedMouseWheelZoomModifierKeys', support);+ },+setTitleUsingUrl: function pdfViewSetTitleUsingUrl(url) {this.url = url;@@ -6330,36 +6642,76 @@ var PDFViewerApplication = {document.title = title;},+ /**+ * Closes opened PDF document.+ * @returns {Promise} - Returns the promise, which is resolved when all+ * destruction is completed.+ */close: function pdfViewClose() {var errorWrapper = document.getElementById('errorWrapper');errorWrapper.setAttribute('hidden', 'true');- if (!this.pdfDocument) {- return;+ if (!this.pdfLoadingTask) {+ return Promise.resolve();}- this.pdfDocument.destroy();- this.pdfDocument = null;+ var promise = this.pdfLoadingTask.destroy();+ this.pdfLoadingTask = null;- this.pdfThumbnailViewer.setDocument(null);- this.pdfViewer.setDocument(null);- this.pdfLinkService.setDocument(null, null);+ if (this.pdfDocument) {+ this.pdfDocument = null;++ this.pdfThumbnailViewer.setDocument(null);+ this.pdfViewer.setDocument(null);+ this.pdfLinkService.setDocument(null, null);+ }if (typeof PDFBug !== 'undefined') {PDFBug.cleanup();}+ return promise;},- // TODO(mack): This function signature should really be pdfViewOpen(url, args)- open: function pdfViewOpen(file, scale, password,- pdfDataRangeTransport, args) {- if (this.pdfDocument) {- // Reload the preferences if a document was previously opened.- Preferences.reload();+ /**+ * Opens PDF document specified by URL or array with additional arguments.+ * @param {string|TypedArray|ArrayBuffer} file - PDF location or binary data.+ * @param {Object} args - (optional) Additional arguments for the getDocument+ * call, e.g. HTTP headers ('httpHeaders') or+ * alternative data transport ('range').+ * @returns {Promise} - Returns the promise, which is resolved when document+ * is opened.+ */+ open: function pdfViewOpen(file, args) {+ var scale = 0;+ if (arguments.length > 2 || typeof args === 'number') {+ console.warn('Call of open() with obsolete signature.');+ if (typeof args === 'number') {+ scale = args; // scale argument was found+ }+ args = arguments[4] || null;+ if (arguments[3] && typeof arguments[3] === 'object') {+ // The pdfDataRangeTransport argument is present.+ args = Object.create(args);+ args.range = arguments[3];+ }+ if (typeof arguments[2] === 'string') {+ // The password argument is present.+ args = Object.create(args);+ args.password = arguments[2];+ }+ }++ if (this.pdfLoadingTask) {+ // We need to destroy already opened document.+ return this.close().then(function () {+ // Reload the preferences if a document was previously opened.+ Preferences.reload();+ // ... and repeat the open() call.+ return this.open(file, args);+ }.bind(this));}- this.close();- var parameters = {password: password};+ var parameters = Object.create(null);if (typeof file === 'string') { // URLthis.setTitleUsingUrl(file);parameters.url = file;@@ -6378,18 +6730,20 @@ var PDFViewerApplication = {var self = this;self.downloadComplete = false;- var passwordNeeded = function passwordNeeded(updatePassword, reason) {+ var loadingTask = PDFJS.getDocument(parameters);+ this.pdfLoadingTask = loadingTask;++ loadingTask.onPassword = function passwordNeeded(updatePassword, reason) {PasswordPrompt.updatePassword = updatePassword;PasswordPrompt.reason = reason;PasswordPrompt.open();};- function getDocumentProgress(progressData) {+ loadingTask.onProgress = function getDocumentProgress(progressData) {self.progress(progressData.loaded / progressData.total);- }+ };- PDFJS.getDocument(parameters, pdfDataRangeTransport, passwordNeeded,- getDocumentProgress).then(+ var result = loadingTask.promise.then(function getDocumentCallback(pdfDocument) {self.load(pdfDocument, scale);},@@ -6415,12 +6769,15 @@ var PDFViewerApplication = {message: message};self.error(loadingErrorMessage, moreInfo);++ throw new Error(loadingErrorMessage);});if (args && args.length) {PDFViewerApplication.pdfDocumentProperties.setFileSize(args.length);}+ return result;},download: function pdfViewDownload() {@@ -6616,6 +6973,12 @@ var PDFViewerApplication = {}}+ var initialParams = {+ destination: self.initialDestination,+ bookmark: self.initialBookmark,+ hash: null,+ };+store.initializedPromise.then(function resolved() {var storedHash = null;if (self.preferenceShowPreviousViewOnLoad &&@@ -6633,6 +6996,8 @@ var PDFViewerApplication = {}self.setInitialView(storedHash, scale);+ initialParams.hash = storedHash;+// Make all navigation keys work on document load,// unless the viewer is embedded in a web page.if (!self.isViewerEmbedded) {@@ -6642,6 +7007,23 @@ var PDFViewerApplication = {console.error(reason);self.setInitialView(null, scale);});++ // For documents with different page sizes,+ // ensure that the correct location becomes visible on load.+ pagesPromise.then(function resolved() {+ if (!initialParams.destination && !initialParams.bookmark &&+ !initialParams.hash) {+ return;+ }+ if (self.hasEqualPageSizes) {+ return;+ }+ self.initialDestination = initialParams.destination;+ self.initialBookmark = initialParams.bookmark;++ self.pdfViewer.currentScaleValue = self.pdfViewer.currentScaleValue;+ self.setInitialView(initialParams.hash, scale);+ });});pagesPromise.then(function() {@@ -6780,6 +7162,9 @@ var PDFViewerApplication = {},cleanup: function pdfViewCleanup() {+ if (!this.pdfDocument) {+ return; // run cleanup when document is loaded+ }this.pdfViewer.cleanup();this.pdfThumbnailViewer.cleanup();this.pdfDocument.cleanup();@@ -6839,29 +7224,27 @@ var PDFViewerApplication = {break;case 'outline':+ if (outlineButton.disabled) {+ return;+ }thumbsButton.classList.remove('toggled');outlineButton.classList.add('toggled');attachmentsButton.classList.remove('toggled');thumbsView.classList.add('hidden');outlineView.classList.remove('hidden');attachmentsView.classList.add('hidden');-- if (outlineButton.getAttribute('disabled')) {- return;- }break;case 'attachments':+ if (attachmentsButton.disabled) {+ return;+ }thumbsButton.classList.remove('toggled');outlineButton.classList.remove('toggled');attachmentsButton.classList.add('toggled');thumbsView.classList.add('hidden');outlineView.classList.add('hidden');attachmentsView.classList.remove('hidden');-- if (attachmentsButton.getAttribute('disabled')) {- return;- }break;}},@@ -7136,6 +7519,11 @@ function webViewerInitialized() {PDFViewerApplication.switchSidebarView('outline');});+ document.getElementById('viewOutline').addEventListener('dblclick',+ function() {+ PDFViewerApplication.outline.toggleOutlineTree();+ });+document.getElementById('viewAttachments').addEventListener('click',function() {PDFViewerApplication.switchSidebarView('attachments');@@ -7201,7 +7589,7 @@ function webViewerInitialized() {PDFViewerApplication.setTitleUsingUrl(file);var xhr = new XMLHttpRequest();xhr.onload = function() {- PDFViewerApplication.open(new Uint8Array(xhr.response), 0);+ PDFViewerApplication.open(new Uint8Array(xhr.response));};try {xhr.open('GET', file);@@ -7215,7 +7603,7 @@ function webViewerInitialized() {}if (file) {- PDFViewerApplication.open(file, 0);+ PDFViewerApplication.open(file);}}@@ -7256,18 +7644,45 @@ document.addEventListener('textlayerrendered', function (e) {}, true);+document.addEventListener('pagemode', function (evt) {+ if (!PDFViewerApplication.initialized) {+ return;+ }+ // Handle the 'pagemode' hash parameter, see also `PDFLinkService_setHash`.+ var mode = evt.detail.mode;+ switch (mode) {+ case 'bookmarks':+ // Note: Our code calls this property 'outline', even though the+ // Open Parameter specification calls it 'bookmarks'.+ mode = 'outline';+ /* falls through */+ case 'thumbs':+ case 'attachments':+ PDFViewerApplication.switchSidebarView(mode, true);+ break;+ case 'none':+ if (PDFViewerApplication.sidebarOpen) {+ document.getElementById('sidebarToggle').click();+ }+ break;+ }+}, true);+document.addEventListener('namedaction', function (e) {+ if (!PDFViewerApplication.initialized) {+ return;+ }// Processing couple of named actions that might be useful.// See also PDFLinkService.executeNamedAction- var action = e.action;+ var action = e.detail.action;switch (action) {case 'GoToPage':document.getElementById('pageNumber').focus();break;case 'Find':- if (!this.supportsIntegratedFind) {- this.findBar.toggle();+ if (!PDFViewerApplication.supportsIntegratedFind) {+ PDFViewerApplication.findBar.toggle();}break;}@@ -7363,14 +7778,14 @@ window.addEventListener('change', function webViewerChange(evt) {if (!PDFJS.disableCreateObjectURL &&typeof URL !== 'undefined' && URL.createObjectURL) {- PDFViewerApplication.open(URL.createObjectURL(file), 0);+ PDFViewerApplication.open(URL.createObjectURL(file));} else {// Read the local file into a Uint8Array.var fileReader = new FileReader();fileReader.onload = function webViewerChangeFileReaderOnload(evt) {var buffer = evt.target.result;var uint8Array = new Uint8Array(buffer);- PDFViewerApplication.open(uint8Array, 0);+ PDFViewerApplication.open(uint8Array);};fileReader.readAsArrayBuffer(file);}@@ -7483,6 +7898,11 @@ function handleMouseWheel(evt) {PDFViewerApplication.scrollPresentationMode(ticks *MOUSE_WHEEL_DELTA_FACTOR);} else if (evt.ctrlKey || evt.metaKey) {+ var support = PDFViewerApplication.supportedMouseWheelZoomModifierKeys;+ if ((evt.ctrlKey && !support.ctrlKey) ||+ (evt.metaKey && !support.metaKey)) {+ return;+ }// Only zoom the pages, not the entire viewer.evt.preventDefault();