[epiphany/mcatanzaro/pdfjs-2.6.347] Reapply Epiphany customizations to PDF.js
- From: Jan-Michael Brummer <jbrummer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/pdfjs-2.6.347] Reapply Epiphany customizations to PDF.js
- Date: Sun, 4 Apr 2021 20:13:56 +0000 (UTC)
commit 637300e7eefcd4d19cd9eb83fc8203a7d5622b27
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Mar 8 16:35:16 2021 -0600
Reapply Epiphany customizations to PDF.js
third-party/pdfjs/README.epiphany | 5 +-
third-party/pdfjs/epiphany-pdfjs-changes.patch | 30 +-
third-party/pdfjs/pdfjs.gresource.xml | 540 ++++++++++++-------------
third-party/pdfjs/web/viewer.css | 3 +
third-party/pdfjs/web/viewer.html | 5 +-
third-party/pdfjs/web/viewer.js | 28 +-
6 files changed, 311 insertions(+), 300 deletions(-)
---
diff --git a/third-party/pdfjs/README.epiphany b/third-party/pdfjs/README.epiphany
index 1fbba14a6..4adc697e5 100644
--- a/third-party/pdfjs/README.epiphany
+++ b/third-party/pdfjs/README.epiphany
@@ -4,7 +4,7 @@ This directory contains an official pdf.js release version, distributed at: http
## Update process
Grab a new official release (*-dist.zip) distributed at github and extract everything except
viewer.[html/js/css] and map files into this directory.
-Then recreate the resource xml file with `python pdfjs-generate-resource.py`
+Then recreate the resource xml file with `python ./pdfjs_generate_resource.py`
The additional files within this directory are modified for Epiphany and shouldn't be changed automatically.
@@ -62,6 +62,9 @@ Here are two small changes for webkit specific layout:
For easier updating to a newer version there is a patch file `epiphany-pdfjs-changes.patch` containing the
necessary changes to the viewer files.
+## Note
+Do not add map files to this bundle (webinspector will complain about it), but they are not needed here and
would increase our storage size otherwise.
+
# Documentation created by Jan-Michael Brummer <jan brummer tabos org>
diff --git a/third-party/pdfjs/epiphany-pdfjs-changes.patch b/third-party/pdfjs/epiphany-pdfjs-changes.patch
index 100a722b0..79317348a 100644
--- a/third-party/pdfjs/epiphany-pdfjs-changes.patch
+++ b/third-party/pdfjs/epiphany-pdfjs-changes.patch
@@ -1,5 +1,5 @@
diff --git a/third-party/pdfjs/web/viewer.css b/third-party/pdfjs/web/viewer.css
-index 595660ad3..8711953bf 100644
+index 605cad57e..21af9931d 100644
--- a/third-party/pdfjs/web/viewer.css
+++ b/third-party/pdfjs/web/viewer.css
@@ -1,4 +1,5 @@
@@ -8,15 +8,15 @@ index 595660ad3..8711953bf 100644
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
-@@ -1192,6 +1193,7 @@ html[dir='rtl'] .dropdownToolbarButton::after {
+@@ -2361,6 +2362,7 @@ html[dir="rtl"] .dropdownToolbarButton::after {
}
.dropdownToolbarButton > select {
+ -webkit-appearance: none;
width: 162px;
- height: 23px;
+ height: 28px;
font-size: 12px;
-@@ -1524,6 +1526,7 @@ html[dir='rtl'] .verticalToolbarSeparator {
+@@ -3132,6 +3134,7 @@ html[dir="rtl"] .toolbarField[type="checkbox"] {
}
.toolbarField.pageNumber {
@@ -25,7 +25,7 @@ index 595660ad3..8711953bf 100644
min-width: 16px;
text-align: right;
diff --git a/third-party/pdfjs/web/viewer.html b/third-party/pdfjs/web/viewer.html
-index 1730b09b7..db8517b1a 100644
+index 123a47d2c..61f1a0e21 100644
--- a/third-party/pdfjs/web/viewer.html
+++ b/third-party/pdfjs/web/viewer.html
@@ -1,6 +1,7 @@
@@ -36,7 +36,7 @@ index 1730b09b7..db8517b1a 100644
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
-@@ -21,7 +22,7 @@ Adobe CMap resources are covered by their own copyright but the same license:
+@@ -21,14 +22,14 @@ Adobe CMap resources are covered by their own copyright but the same license:
See https://github.com/adobe-type-tools/cmap-resources
-->
<html dir="ltr" mozdisallowselectionprint>
@@ -45,16 +45,16 @@ index 1730b09b7..db8517b1a 100644
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="google" content="notranslate">
-@@ -29,6 +30,7 @@ See https://github.com/adobe-type-tools/cmap-resources
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PDF.js viewer</title>
-
+-
+ <base href="ephy-resource:///org/gnome/epiphany/pdfjs/web/">
<link rel="stylesheet" href="viewer.css">
diff --git a/third-party/pdfjs/web/viewer.js b/third-party/pdfjs/web/viewer.js
-index 3cf8beed8..e7a792006 100644
+index d89902345..1d54e92c7 100644
--- a/third-party/pdfjs/web/viewer.js
+++ b/third-party/pdfjs/web/viewer.js
@@ -3,6 +3,7 @@
@@ -65,7 +65,7 @@ index 3cf8beed8..e7a792006 100644
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
-@@ -1836,8 +1837,7 @@ function webViewerInitialized() {
+@@ -1973,8 +1974,7 @@ function webViewerInitialized() {
let file;
const queryString = document.location.search.substring(1);
const params = (0, _ui_utils.parseQueryString)(queryString);
@@ -75,7 +75,7 @@ index 3cf8beed8..e7a792006 100644
const fileInput = document.createElement("input");
fileInput.id = appConfig.openFileInputName;
fileInput.className = "fileInput";
-@@ -1845,12 +1845,10 @@ function webViewerInitialized() {
+@@ -1982,12 +1982,8 @@ function webViewerInitialized() {
fileInput.oncontextmenu = _ui_utils.noContextMenuHandler;
document.body.appendChild(fileInput);
@@ -87,12 +87,10 @@ index 3cf8beed8..e7a792006 100644
- }
+ appConfig.toolbar.openFile.setAttribute('hidden', 'true');
+ appConfig.secondaryToolbar.openFileButton.setAttribute('hidden', 'true');
-+
-+ appConfig.toolbar.viewBookmark.setAttribute('hidden', 'true');
fileInput.addEventListener("change", function (evt) {
const files = evt.target.files;
-@@ -1912,8 +1910,18 @@ function webViewerInitialized() {
+@@ -2049,8 +2045,18 @@ function webViewerInitialized() {
}
}, true);
@@ -112,7 +110,7 @@ index 3cf8beed8..e7a792006 100644
} catch (reason) {
PDFViewerApplication.l10n.get("loading_error", null, "An error occurred while loading the
PDF.").then(msg => {
PDFViewerApplication.error(msg, reason);
-@@ -6520,6 +6528,8 @@ class PDFHistory {
+@@ -6877,6 +6883,8 @@ class PDFHistory {
}
}
@@ -121,7 +119,7 @@ index 3cf8beed8..e7a792006 100644
if (shouldReplace) {
window.history.replaceState(newState, "", newUrl);
} else {
-@@ -13276,4 +13286,4 @@ _app.PDFPrintServiceFactory.instance = {
+@@ -13897,4 +13905,4 @@ _app.PDFPrintServiceFactory.instance = {
/***/ })
/******/ ]);
diff --git a/third-party/pdfjs/pdfjs.gresource.xml b/third-party/pdfjs/pdfjs.gresource.xml
index 36708560c..9845e7483 100644
--- a/third-party/pdfjs/pdfjs.gresource.xml
+++ b/third-party/pdfjs/pdfjs.gresource.xml
@@ -1,197 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/epiphany/pdfjs">
+ <file compressed="true">build/pdf.js</file>
+ <file compressed="true">build/pdf.worker.js</file>
<file compressed="true">web/compressed.tracemonkey-pldi-09.pdf</file>
<file compressed="true">web/debugger.js</file>
- <file compressed="true">web/viewer.js</file>
<file compressed="true">web/viewer.css</file>
<file compressed="true">web/viewer.html</file>
- <file compressed="true">web/cmaps/78-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/78-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/78-H.bcmap</file>
- <file compressed="true">web/cmaps/78-RKSJ-H.bcmap</file>
- <file compressed="true">web/cmaps/78-RKSJ-V.bcmap</file>
- <file compressed="true">web/cmaps/78-V.bcmap</file>
- <file compressed="true">web/cmaps/78ms-RKSJ-H.bcmap</file>
- <file compressed="true">web/cmaps/78ms-RKSJ-V.bcmap</file>
- <file compressed="true">web/cmaps/83pv-RKSJ-H.bcmap</file>
- <file compressed="true">web/cmaps/90ms-RKSJ-H.bcmap</file>
- <file compressed="true">web/cmaps/90ms-RKSJ-V.bcmap</file>
- <file compressed="true">web/cmaps/90msp-RKSJ-H.bcmap</file>
- <file compressed="true">web/cmaps/90msp-RKSJ-V.bcmap</file>
- <file compressed="true">web/cmaps/90pv-RKSJ-H.bcmap</file>
- <file compressed="true">web/cmaps/90pv-RKSJ-V.bcmap</file>
- <file compressed="true">web/cmaps/Add-H.bcmap</file>
- <file compressed="true">web/cmaps/Add-RKSJ-H.bcmap</file>
- <file compressed="true">web/cmaps/Add-RKSJ-V.bcmap</file>
- <file compressed="true">web/cmaps/Add-V.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-CNS1-0.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-CNS1-1.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-CNS1-2.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-CNS1-3.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-CNS1-4.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-CNS1-5.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-CNS1-6.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-CNS1-UCS2.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-GB1-0.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-GB1-1.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-GB1-2.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-GB1-3.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-GB1-4.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-GB1-5.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-GB1-UCS2.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Japan1-0.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Japan1-1.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Japan1-2.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Japan1-3.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Japan1-4.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Japan1-5.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Japan1-6.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Japan1-UCS2.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Korea1-0.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Korea1-1.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Korea1-2.bcmap</file>
- <file compressed="true">web/cmaps/Adobe-Korea1-UCS2.bcmap</file>
- <file compressed="true">web/cmaps/B5-H.bcmap</file>
- <file compressed="true">web/cmaps/B5-V.bcmap</file>
- <file compressed="true">web/cmaps/B5pc-H.bcmap</file>
- <file compressed="true">web/cmaps/B5pc-V.bcmap</file>
- <file compressed="true">web/cmaps/CNS-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/CNS-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/CNS1-H.bcmap</file>
- <file compressed="true">web/cmaps/CNS1-V.bcmap</file>
- <file compressed="true">web/cmaps/CNS2-H.bcmap</file>
- <file compressed="true">web/cmaps/CNS2-V.bcmap</file>
- <file compressed="true">web/cmaps/ETHK-B5-H.bcmap</file>
- <file compressed="true">web/cmaps/ETHK-B5-V.bcmap</file>
- <file compressed="true">web/cmaps/ETen-B5-H.bcmap</file>
- <file compressed="true">web/cmaps/ETen-B5-V.bcmap</file>
- <file compressed="true">web/cmaps/ETenms-B5-H.bcmap</file>
- <file compressed="true">web/cmaps/ETenms-B5-V.bcmap</file>
- <file compressed="true">web/cmaps/EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/Ext-H.bcmap</file>
- <file compressed="true">web/cmaps/Ext-RKSJ-H.bcmap</file>
- <file compressed="true">web/cmaps/Ext-RKSJ-V.bcmap</file>
- <file compressed="true">web/cmaps/Ext-V.bcmap</file>
- <file compressed="true">web/cmaps/GB-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/GB-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/GB-H.bcmap</file>
- <file compressed="true">web/cmaps/GB-V.bcmap</file>
- <file compressed="true">web/cmaps/GBK-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/GBK-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/GBK2K-H.bcmap</file>
- <file compressed="true">web/cmaps/GBK2K-V.bcmap</file>
- <file compressed="true">web/cmaps/GBKp-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/GBKp-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/GBT-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/GBT-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/GBT-H.bcmap</file>
- <file compressed="true">web/cmaps/GBT-V.bcmap</file>
- <file compressed="true">web/cmaps/GBTpc-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/GBTpc-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/GBpc-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/GBpc-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/H.bcmap</file>
- <file compressed="true">web/cmaps/HKdla-B5-H.bcmap</file>
- <file compressed="true">web/cmaps/HKdla-B5-V.bcmap</file>
- <file compressed="true">web/cmaps/HKdlb-B5-H.bcmap</file>
- <file compressed="true">web/cmaps/HKdlb-B5-V.bcmap</file>
- <file compressed="true">web/cmaps/HKgccs-B5-H.bcmap</file>
- <file compressed="true">web/cmaps/HKgccs-B5-V.bcmap</file>
- <file compressed="true">web/cmaps/HKm314-B5-H.bcmap</file>
- <file compressed="true">web/cmaps/HKm314-B5-V.bcmap</file>
- <file compressed="true">web/cmaps/HKm471-B5-H.bcmap</file>
- <file compressed="true">web/cmaps/HKm471-B5-V.bcmap</file>
- <file compressed="true">web/cmaps/HKscs-B5-H.bcmap</file>
- <file compressed="true">web/cmaps/HKscs-B5-V.bcmap</file>
- <file compressed="true">web/cmaps/Hankaku.bcmap</file>
- <file compressed="true">web/cmaps/Hiragana.bcmap</file>
- <file compressed="true">web/cmaps/KSC-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/KSC-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/KSC-H.bcmap</file>
- <file compressed="true">web/cmaps/KSC-Johab-H.bcmap</file>
- <file compressed="true">web/cmaps/KSC-Johab-V.bcmap</file>
- <file compressed="true">web/cmaps/KSC-V.bcmap</file>
- <file compressed="true">web/cmaps/KSCms-UHC-H.bcmap</file>
- <file compressed="true">web/cmaps/KSCms-UHC-HW-H.bcmap</file>
- <file compressed="true">web/cmaps/KSCms-UHC-HW-V.bcmap</file>
- <file compressed="true">web/cmaps/KSCms-UHC-V.bcmap</file>
- <file compressed="true">web/cmaps/KSCpc-EUC-H.bcmap</file>
- <file compressed="true">web/cmaps/KSCpc-EUC-V.bcmap</file>
- <file compressed="true">web/cmaps/Katakana.bcmap</file>
- <file compressed="true">web/cmaps/LICENSE</file>
- <file compressed="true">web/cmaps/NWP-H.bcmap</file>
- <file compressed="true">web/cmaps/NWP-V.bcmap</file>
- <file compressed="true">web/cmaps/RKSJ-H.bcmap</file>
- <file compressed="true">web/cmaps/RKSJ-V.bcmap</file>
- <file compressed="true">web/cmaps/Roman.bcmap</file>
- <file compressed="true">web/cmaps/UniCNS-UCS2-H.bcmap</file>
- <file compressed="true">web/cmaps/UniCNS-UCS2-V.bcmap</file>
- <file compressed="true">web/cmaps/UniCNS-UTF16-H.bcmap</file>
- <file compressed="true">web/cmaps/UniCNS-UTF16-V.bcmap</file>
- <file compressed="true">web/cmaps/UniCNS-UTF32-H.bcmap</file>
- <file compressed="true">web/cmaps/UniCNS-UTF32-V.bcmap</file>
- <file compressed="true">web/cmaps/UniCNS-UTF8-H.bcmap</file>
- <file compressed="true">web/cmaps/UniCNS-UTF8-V.bcmap</file>
- <file compressed="true">web/cmaps/UniGB-UCS2-H.bcmap</file>
- <file compressed="true">web/cmaps/UniGB-UCS2-V.bcmap</file>
- <file compressed="true">web/cmaps/UniGB-UTF16-H.bcmap</file>
- <file compressed="true">web/cmaps/UniGB-UTF16-V.bcmap</file>
- <file compressed="true">web/cmaps/UniGB-UTF32-H.bcmap</file>
- <file compressed="true">web/cmaps/UniGB-UTF32-V.bcmap</file>
- <file compressed="true">web/cmaps/UniGB-UTF8-H.bcmap</file>
- <file compressed="true">web/cmaps/UniGB-UTF8-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UCS2-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UCS2-HW-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UCS2-HW-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UCS2-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UTF16-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UTF16-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UTF32-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UTF32-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UTF8-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS-UTF8-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS2004-UTF16-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS2004-UTF16-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS2004-UTF32-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS2004-UTF32-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS2004-UTF8-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJIS2004-UTF8-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJISPro-UCS2-HW-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJISPro-UCS2-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJISPro-UTF8-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJISX0213-UTF32-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJISX0213-UTF32-V.bcmap</file>
- <file compressed="true">web/cmaps/UniJISX02132004-UTF32-H.bcmap</file>
- <file compressed="true">web/cmaps/UniJISX02132004-UTF32-V.bcmap</file>
- <file compressed="true">web/cmaps/UniKS-UCS2-H.bcmap</file>
- <file compressed="true">web/cmaps/UniKS-UCS2-V.bcmap</file>
- <file compressed="true">web/cmaps/UniKS-UTF16-H.bcmap</file>
- <file compressed="true">web/cmaps/UniKS-UTF16-V.bcmap</file>
- <file compressed="true">web/cmaps/UniKS-UTF32-H.bcmap</file>
- <file compressed="true">web/cmaps/UniKS-UTF32-V.bcmap</file>
- <file compressed="true">web/cmaps/UniKS-UTF8-H.bcmap</file>
- <file compressed="true">web/cmaps/UniKS-UTF8-V.bcmap</file>
- <file compressed="true">web/cmaps/V.bcmap</file>
- <file compressed="true">web/cmaps/WP-Symbol.bcmap</file>
+ <file compressed="true">web/viewer.js</file>
+ <file compressed="true">web/images/annotation-paragraph.svg</file>
+ <file compressed="true">web/images/annotation-note.svg</file>
+ <file compressed="true">web/images/annotation-noicon.svg</file>
+ <file compressed="true">web/images/loading-icon.gif</file>
<file compressed="true">web/images/annotation-check.svg</file>
- <file compressed="true">web/images/annotation-comment.svg</file>
+ <file compressed="true">web/images/annotation-key.svg</file>
<file compressed="true">web/images/annotation-help.svg</file>
+ <file compressed="true">web/images/grabbing.cur</file>
<file compressed="true">web/images/annotation-insert.svg</file>
- <file compressed="true">web/images/annotation-key.svg</file>
+ <file compressed="true">web/images/annotation-comment.svg</file>
+ <file compressed="true">web/images/grab.cur</file>
<file compressed="true">web/images/annotation-newparagraph.svg</file>
- <file compressed="true">web/images/annotation-noicon.svg</file>
- <file compressed="true">web/images/annotation-note.svg</file>
- <file compressed="true">web/images/annotation-paragraph.svg</file>
<file compressed="true">web/images/findbarButton-next-dark.svg</file>
<file compressed="true">web/images/findbarButton-next.svg</file>
<file compressed="true">web/images/findbarButton-previous-dark.svg</file>
<file compressed="true">web/images/findbarButton-previous.svg</file>
- <file compressed="true">web/images/grab.cur</file>
- <file compressed="true">web/images/grabbing.cur</file>
<file compressed="true">web/images/loading-dark.svg</file>
- <file compressed="true">web/images/loading-icon.gif</file>
<file compressed="true">web/images/loading.svg</file>
<file compressed="true">web/images/secondaryToolbarButton-documentProperties-dark.svg</file>
<file compressed="true">web/images/secondaryToolbarButton-documentProperties.svg</file>
@@ -259,114 +92,279 @@
<file compressed="true">web/images/treeitem-expanded-dark.svg</file>
<file compressed="true">web/images/treeitem-expanded.svg</file>
<file compressed="true">web/locale/locale.properties</file>
- <file compressed="true">web/locale/ach/viewer.properties</file>
- <file compressed="true">web/locale/af/viewer.properties</file>
- <file compressed="true">web/locale/an/viewer.properties</file>
- <file compressed="true">web/locale/ar/viewer.properties</file>
- <file compressed="true">web/locale/ast/viewer.properties</file>
- <file compressed="true">web/locale/az/viewer.properties</file>
- <file compressed="true">web/locale/be/viewer.properties</file>
- <file compressed="true">web/locale/bg/viewer.properties</file>
- <file compressed="true">web/locale/bn/viewer.properties</file>
- <file compressed="true">web/locale/bo/viewer.properties</file>
- <file compressed="true">web/locale/br/viewer.properties</file>
- <file compressed="true">web/locale/brx/viewer.properties</file>
- <file compressed="true">web/locale/bs/viewer.properties</file>
- <file compressed="true">web/locale/ca/viewer.properties</file>
- <file compressed="true">web/locale/cak/viewer.properties</file>
- <file compressed="true">web/locale/ckb/viewer.properties</file>
- <file compressed="true">web/locale/cs/viewer.properties</file>
- <file compressed="true">web/locale/cy/viewer.properties</file>
- <file compressed="true">web/locale/da/viewer.properties</file>
+ <file compressed="true">web/locale/nn-NO/viewer.properties</file>
+ <file compressed="true">web/locale/uk/viewer.properties</file>
+ <file compressed="true">web/locale/ia/viewer.properties</file>
<file compressed="true">web/locale/de/viewer.properties</file>
+ <file compressed="true">web/locale/ko/viewer.properties</file>
+ <file compressed="true">web/locale/be/viewer.properties</file>
+ <file compressed="true">web/locale/ur/viewer.properties</file>
<file compressed="true">web/locale/dsb/viewer.properties</file>
- <file compressed="true">web/locale/el/viewer.properties</file>
- <file compressed="true">web/locale/en-CA/viewer.properties</file>
- <file compressed="true">web/locale/en-GB/viewer.properties</file>
- <file compressed="true">web/locale/en-US/viewer.properties</file>
- <file compressed="true">web/locale/eo/viewer.properties</file>
- <file compressed="true">web/locale/es-AR/viewer.properties</file>
- <file compressed="true">web/locale/es-CL/viewer.properties</file>
- <file compressed="true">web/locale/es-ES/viewer.properties</file>
<file compressed="true">web/locale/es-MX/viewer.properties</file>
- <file compressed="true">web/locale/et/viewer.properties</file>
- <file compressed="true">web/locale/eu/viewer.properties</file>
- <file compressed="true">web/locale/fa/viewer.properties</file>
- <file compressed="true">web/locale/ff/viewer.properties</file>
+ <file compressed="true">web/locale/nb-NO/viewer.properties</file>
<file compressed="true">web/locale/fi/viewer.properties</file>
- <file compressed="true">web/locale/fr/viewer.properties</file>
- <file compressed="true">web/locale/fy-NL/viewer.properties</file>
- <file compressed="true">web/locale/ga-IE/viewer.properties</file>
- <file compressed="true">web/locale/gd/viewer.properties</file>
+ <file compressed="true">web/locale/ast/viewer.properties</file>
+ <file compressed="true">web/locale/fa/viewer.properties</file>
+ <file compressed="true">web/locale/zh-CN/viewer.properties</file>
+ <file compressed="true">web/locale/te/viewer.properties</file>
+ <file compressed="true">web/locale/si/viewer.properties</file>
+ <file compressed="true">web/locale/son/viewer.properties</file>
+ <file compressed="true">web/locale/es-ES/viewer.properties</file>
+ <file compressed="true">web/locale/sv-SE/viewer.properties</file>
+ <file compressed="true">web/locale/ms/viewer.properties</file>
+ <file compressed="true">web/locale/ach/viewer.properties</file>
+ <file compressed="true">web/locale/sq/viewer.properties</file>
+ <file compressed="true">web/locale/ka/viewer.properties</file>
<file compressed="true">web/locale/gl/viewer.properties</file>
- <file compressed="true">web/locale/gn/viewer.properties</file>
- <file compressed="true">web/locale/gu-IN/viewer.properties</file>
- <file compressed="true">web/locale/he/viewer.properties</file>
- <file compressed="true">web/locale/hi-IN/viewer.properties</file>
- <file compressed="true">web/locale/hr/viewer.properties</file>
- <file compressed="true">web/locale/hsb/viewer.properties</file>
- <file compressed="true">web/locale/hu/viewer.properties</file>
+ <file compressed="true">web/locale/en-CA/viewer.properties</file>
<file compressed="true">web/locale/hy-AM/viewer.properties</file>
- <file compressed="true">web/locale/hye/viewer.properties</file>
- <file compressed="true">web/locale/ia/viewer.properties</file>
- <file compressed="true">web/locale/id/viewer.properties</file>
- <file compressed="true">web/locale/is/viewer.properties</file>
- <file compressed="true">web/locale/it/viewer.properties</file>
- <file compressed="true">web/locale/ja/viewer.properties</file>
- <file compressed="true">web/locale/ka/viewer.properties</file>
+ <file compressed="true">web/locale/et/viewer.properties</file>
+ <file compressed="true">web/locale/ta/viewer.properties</file>
+ <file compressed="true">web/locale/eo/viewer.properties</file>
+ <file compressed="true">web/locale/da/viewer.properties</file>
+ <file compressed="true">web/locale/es-CL/viewer.properties</file>
<file compressed="true">web/locale/kab/viewer.properties</file>
- <file compressed="true">web/locale/kk/viewer.properties</file>
- <file compressed="true">web/locale/km/viewer.properties</file>
- <file compressed="true">web/locale/kn/viewer.properties</file>
- <file compressed="true">web/locale/ko/viewer.properties</file>
- <file compressed="true">web/locale/lij/viewer.properties</file>
- <file compressed="true">web/locale/lo/viewer.properties</file>
+ <file compressed="true">web/locale/hr/viewer.properties</file>
<file compressed="true">web/locale/lt/viewer.properties</file>
<file compressed="true">web/locale/ltg/viewer.properties</file>
- <file compressed="true">web/locale/lv/viewer.properties</file>
+ <file compressed="true">web/locale/gd/viewer.properties</file>
+ <file compressed="true">web/locale/vi/viewer.properties</file>
+ <file compressed="true">web/locale/af/viewer.properties</file>
+ <file compressed="true">web/locale/sk/viewer.properties</file>
+ <file compressed="true">web/locale/ro/viewer.properties</file>
+ <file compressed="true">web/locale/hsb/viewer.properties</file>
+ <file compressed="true">web/locale/pt-PT/viewer.properties</file>
+ <file compressed="true">web/locale/kk/viewer.properties</file>
+ <file compressed="true">web/locale/hi-IN/viewer.properties</file>
+ <file compressed="true">web/locale/id/viewer.properties</file>
+ <file compressed="true">web/locale/tl/viewer.properties</file>
+ <file compressed="true">web/locale/gu-IN/viewer.properties</file>
+ <file compressed="true">web/locale/cak/viewer.properties</file>
+ <file compressed="true">web/locale/es-AR/viewer.properties</file>
+ <file compressed="true">web/locale/sr/viewer.properties</file>
<file compressed="true">web/locale/meh/viewer.properties</file>
- <file compressed="true">web/locale/mk/viewer.properties</file>
+ <file compressed="true">web/locale/trs/viewer.properties</file>
+ <file compressed="true">web/locale/is/viewer.properties</file>
+ <file compressed="true">web/locale/fy-NL/viewer.properties</file>
+ <file compressed="true">web/locale/km/viewer.properties</file>
+ <file compressed="true">web/locale/ar/viewer.properties</file>
+ <file compressed="true">web/locale/fr/viewer.properties</file>
+ <file compressed="true">web/locale/lo/viewer.properties</file>
+ <file compressed="true">web/locale/pt-BR/viewer.properties</file>
+ <file compressed="true">web/locale/nl/viewer.properties</file>
+ <file compressed="true">web/locale/rm/viewer.properties</file>
<file compressed="true">web/locale/mr/viewer.properties</file>
- <file compressed="true">web/locale/ms/viewer.properties</file>
- <file compressed="true">web/locale/my/viewer.properties</file>
- <file compressed="true">web/locale/nb-NO/viewer.properties</file>
+ <file compressed="true">web/locale/mk/viewer.properties</file>
+ <file compressed="true">web/locale/pl/viewer.properties</file>
+ <file compressed="true">web/locale/xh/viewer.properties</file>
+ <file compressed="true">web/locale/bn/viewer.properties</file>
+ <file compressed="true">web/locale/br/viewer.properties</file>
+ <file compressed="true">web/locale/en-GB/viewer.properties</file>
+ <file compressed="true">web/locale/kn/viewer.properties</file>
+ <file compressed="true">web/locale/cy/viewer.properties</file>
+ <file compressed="true">web/locale/brx/viewer.properties</file>
+ <file compressed="true">web/locale/zh-TW/viewer.properties</file>
+ <file compressed="true">web/locale/lij/viewer.properties</file>
+ <file compressed="true">web/locale/ga-IE/viewer.properties</file>
<file compressed="true">web/locale/ne-NP/viewer.properties</file>
- <file compressed="true">web/locale/nl/viewer.properties</file>
- <file compressed="true">web/locale/nn-NO/viewer.properties</file>
- <file compressed="true">web/locale/oc/viewer.properties</file>
+ <file compressed="true">web/locale/az/viewer.properties</file>
+ <file compressed="true">web/locale/hu/viewer.properties</file>
+ <file compressed="true">web/locale/el/viewer.properties</file>
+ <file compressed="true">web/locale/gn/viewer.properties</file>
+ <file compressed="true">web/locale/cs/viewer.properties</file>
+ <file compressed="true">web/locale/ff/viewer.properties</file>
<file compressed="true">web/locale/pa-IN/viewer.properties</file>
- <file compressed="true">web/locale/pl/viewer.properties</file>
- <file compressed="true">web/locale/pt-BR/viewer.properties</file>
- <file compressed="true">web/locale/pt-PT/viewer.properties</file>
- <file compressed="true">web/locale/rm/viewer.properties</file>
- <file compressed="true">web/locale/ro/viewer.properties</file>
- <file compressed="true">web/locale/ru/viewer.properties</file>
- <file compressed="true">web/locale/scn/viewer.properties</file>
- <file compressed="true">web/locale/si/viewer.properties</file>
- <file compressed="true">web/locale/sk/viewer.properties</file>
<file compressed="true">web/locale/sl/viewer.properties</file>
- <file compressed="true">web/locale/son/viewer.properties</file>
- <file compressed="true">web/locale/sq/viewer.properties</file>
- <file compressed="true">web/locale/sr/viewer.properties</file>
- <file compressed="true">web/locale/sv-SE/viewer.properties</file>
- <file compressed="true">web/locale/szl/viewer.properties</file>
- <file compressed="true">web/locale/ta/viewer.properties</file>
- <file compressed="true">web/locale/te/viewer.properties</file>
- <file compressed="true">web/locale/th/viewer.properties</file>
- <file compressed="true">web/locale/tl/viewer.properties</file>
+ <file compressed="true">web/locale/lv/viewer.properties</file>
+ <file compressed="true">web/locale/ja/viewer.properties</file>
+ <file compressed="true">web/locale/ru/viewer.properties</file>
+ <file compressed="true">web/locale/ca/viewer.properties</file>
+ <file compressed="true">web/locale/wo/viewer.properties</file>
+ <file compressed="true">web/locale/it/viewer.properties</file>
<file compressed="true">web/locale/tr/viewer.properties</file>
- <file compressed="true">web/locale/trs/viewer.properties</file>
- <file compressed="true">web/locale/uk/viewer.properties</file>
- <file compressed="true">web/locale/ur/viewer.properties</file>
+ <file compressed="true">web/locale/en-US/viewer.properties</file>
+ <file compressed="true">web/locale/an/viewer.properties</file>
+ <file compressed="true">web/locale/my/viewer.properties</file>
+ <file compressed="true">web/locale/he/viewer.properties</file>
+ <file compressed="true">web/locale/eu/viewer.properties</file>
+ <file compressed="true">web/locale/bg/viewer.properties</file>
+ <file compressed="true">web/locale/bo/viewer.properties</file>
<file compressed="true">web/locale/uz/viewer.properties</file>
- <file compressed="true">web/locale/vi/viewer.properties</file>
- <file compressed="true">web/locale/wo/viewer.properties</file>
- <file compressed="true">web/locale/xh/viewer.properties</file>
- <file compressed="true">web/locale/zh-CN/viewer.properties</file>
- <file compressed="true">web/locale/zh-TW/viewer.properties</file>
- <file compressed="true">build/pdf.js</file>
- <file compressed="true">build/pdf.js.map</file>
- <file compressed="true">build/pdf.worker.js</file>
- <file compressed="true">build/pdf.worker.js.map</file>
+ <file compressed="true">web/locale/oc/viewer.properties</file>
+ <file compressed="true">web/locale/th/viewer.properties</file>
+ <file compressed="true">web/locale/bs/viewer.properties</file>
+ <file compressed="true">web/locale/hye/viewer.properties</file>
+ <file compressed="true">web/locale/scn/viewer.properties</file>
+ <file compressed="true">web/locale/ckb/viewer.properties</file>
+ <file compressed="true">web/locale/szl/viewer.properties</file>
+ <file compressed="true">web/cmaps/B5pc-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniCNS-UTF16-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJISPro-UCS2-HW-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Japan1-4.bcmap</file>
+ <file compressed="true">web/cmaps/Add-RKSJ-V.bcmap</file>
+ <file compressed="true">web/cmaps/ETen-B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Korea1-2.bcmap</file>
+ <file compressed="true">web/cmaps/UniJISPro-UTF8-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniKS-UTF8-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Japan1-0.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-GB1-1.bcmap</file>
+ <file compressed="true">web/cmaps/ETenms-B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-CNS1-UCS2.bcmap</file>
+ <file compressed="true">web/cmaps/90pv-RKSJ-V.bcmap</file>
+ <file compressed="true">web/cmaps/B5pc-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniGB-UTF16-V.bcmap</file>
+ <file compressed="true">web/cmaps/B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/HKgccs-B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/KSC-Johab-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniKS-UCS2-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-CNS1-5.bcmap</file>
+ <file compressed="true">web/cmaps/Add-V.bcmap</file>
+ <file compressed="true">web/cmaps/GBT-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniCNS-UTF32-V.bcmap</file>
+ <file compressed="true">web/cmaps/Hankaku.bcmap</file>
+ <file compressed="true">web/cmaps/78-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniKS-UTF32-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniKS-UCS2-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniGB-UTF8-V.bcmap</file>
+ <file compressed="true">web/cmaps/V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Japan1-UCS2.bcmap</file>
+ <file compressed="true">web/cmaps/EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniKS-UTF8-H.bcmap</file>
+ <file compressed="true">web/cmaps/KSCms-UHC-HW-H.bcmap</file>
+ <file compressed="true">web/cmaps/78ms-RKSJ-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-GB1-2.bcmap</file>
+ <file compressed="true">web/cmaps/KSCpc-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-GB1-0.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UTF8-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniCNS-UTF8-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniCNS-UTF32-H.bcmap</file>
+ <file compressed="true">web/cmaps/HKscs-B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-GB1-4.bcmap</file>
+ <file compressed="true">web/cmaps/KSC-Johab-V.bcmap</file>
+ <file compressed="true">web/cmaps/Ext-RKSJ-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UCS2-HW-H.bcmap</file>
+ <file compressed="true">web/cmaps/GBTpc-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS2004-UTF32-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniCNS-UTF8-H.bcmap</file>
+ <file compressed="true">web/cmaps/78-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS2004-UTF8-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniGB-UTF8-H.bcmap</file>
+ <file compressed="true">web/cmaps/GBpc-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/HKdlb-B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniCNS-UTF16-H.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Korea1-1.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-CNS1-1.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-GB1-3.bcmap</file>
+ <file compressed="true">web/cmaps/GBT-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/GBT-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-CNS1-3.bcmap</file>
+ <file compressed="true">web/cmaps/Hiragana.bcmap</file>
+ <file compressed="true">web/cmaps/UniGB-UCS2-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UCS2-HW-V.bcmap</file>
+ <file compressed="true">web/cmaps/Add-RKSJ-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniKS-UTF16-V.bcmap</file>
+ <file compressed="true">web/cmaps/78-H.bcmap</file>
+ <file compressed="true">web/cmaps/RKSJ-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS2004-UTF16-V.bcmap</file>
+ <file compressed="true">web/cmaps/GBT-H.bcmap</file>
+ <file compressed="true">web/cmaps/KSC-H.bcmap</file>
+ <file compressed="true">web/cmaps/CNS2-V.bcmap</file>
+ <file compressed="true">web/cmaps/GBKp-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/HKm314-B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-GB1-5.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-CNS1-6.bcmap</file>
+ <file compressed="true">web/cmaps/KSC-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/90ms-RKSJ-V.bcmap</file>
+ <file compressed="true">web/cmaps/NWP-V.bcmap</file>
+ <file compressed="true">web/cmaps/GB-H.bcmap</file>
+ <file compressed="true">web/cmaps/GBpc-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/KSCms-UHC-H.bcmap</file>
+ <file compressed="true">web/cmaps/83pv-RKSJ-H.bcmap</file>
+ <file compressed="true">web/cmaps/78-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/HKm471-B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniKS-UTF16-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UTF8-V.bcmap</file>
+ <file compressed="true">web/cmaps/CNS1-H.bcmap</file>
+ <file compressed="true">web/cmaps/ETHK-B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UTF16-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UTF32-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniJISPro-UCS2-V.bcmap</file>
+ <file compressed="true">web/cmaps/Ext-RKSJ-H.bcmap</file>
+ <file compressed="true">web/cmaps/GB-V.bcmap</file>
+ <file compressed="true">web/cmaps/GB-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/GBK-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Korea1-UCS2.bcmap</file>
+ <file compressed="true">web/cmaps/GBKp-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/Add-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniKS-UTF32-V.bcmap</file>
+ <file compressed="true">web/cmaps/78-RKSJ-V.bcmap</file>
+ <file compressed="true">web/cmaps/WP-Symbol.bcmap</file>
+ <file compressed="true">web/cmaps/HKdla-B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniJISX0213-UTF32-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS2004-UTF8-H.bcmap</file>
+ <file compressed="true">web/cmaps/90msp-RKSJ-V.bcmap</file>
+ <file compressed="true">web/cmaps/CNS1-V.bcmap</file>
+ <file compressed="true">web/cmaps/RKSJ-H.bcmap</file>
+ <file compressed="true">web/cmaps/GBTpc-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/Ext-H.bcmap</file>
+ <file compressed="true">web/cmaps/GBK-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/ETHK-B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniGB-UTF16-H.bcmap</file>
+ <file compressed="true">web/cmaps/KSC-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJISX02132004-UTF32-H.bcmap</file>
+ <file compressed="true">web/cmaps/Ext-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS2004-UTF16-H.bcmap</file>
+ <file compressed="true">web/cmaps/90msp-RKSJ-H.bcmap</file>
+ <file compressed="true">web/cmaps/Roman.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Japan1-1.bcmap</file>
+ <file compressed="true">web/cmaps/KSCms-UHC-HW-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UTF16-H.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Japan1-3.bcmap</file>
+ <file compressed="true">web/cmaps/NWP-H.bcmap</file>
+ <file compressed="true">web/cmaps/LICENSE</file>
+ <file compressed="true">web/cmaps/ETen-B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/HKgccs-B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/CNS-EUC-H.bcmap</file>
+ <file compressed="true">web/cmaps/CNS-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJISX0213-UTF32-H.bcmap</file>
+ <file compressed="true">web/cmaps/HKdlb-B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/KSC-V.bcmap</file>
+ <file compressed="true">web/cmaps/HKdla-B5-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS2004-UTF32-H.bcmap</file>
+ <file compressed="true">web/cmaps/GB-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniGB-UCS2-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Japan1-2.bcmap</file>
+ <file compressed="true">web/cmaps/78ms-RKSJ-H.bcmap</file>
+ <file compressed="true">web/cmaps/HKscs-B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/H.bcmap</file>
+ <file compressed="true">web/cmaps/HKm471-B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/KSCpc-EUC-V.bcmap</file>
+ <file compressed="true">web/cmaps/Katakana.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UCS2-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniJISX02132004-UTF32-V.bcmap</file>
+ <file compressed="true">web/cmaps/UniGB-UTF32-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-GB1-UCS2.bcmap</file>
+ <file compressed="true">web/cmaps/ETenms-B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/90ms-RKSJ-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniGB-UTF32-H.bcmap</file>
+ <file compressed="true">web/cmaps/HKm314-B5-H.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-CNS1-0.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-CNS1-2.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Japan1-5.bcmap</file>
+ <file compressed="true">web/cmaps/90pv-RKSJ-H.bcmap</file>
+ <file compressed="true">web/cmaps/KSCms-UHC-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-CNS1-4.bcmap</file>
+ <file compressed="true">web/cmaps/GBK2K-V.bcmap</file>
+ <file compressed="true">web/cmaps/GBK2K-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UTF32-V.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Japan1-6.bcmap</file>
+ <file compressed="true">web/cmaps/UniCNS-UCS2-H.bcmap</file>
+ <file compressed="true">web/cmaps/78-RKSJ-H.bcmap</file>
+ <file compressed="true">web/cmaps/UniCNS-UCS2-V.bcmap</file>
+ <file compressed="true">web/cmaps/CNS2-H.bcmap</file>
+ <file compressed="true">web/cmaps/Adobe-Korea1-0.bcmap</file>
+ <file compressed="true">web/cmaps/UniJIS-UCS2-H.bcmap</file>
</gresource>
</gresources>
diff --git a/third-party/pdfjs/web/viewer.css b/third-party/pdfjs/web/viewer.css
index 605cad57e..21af9931d 100644
--- a/third-party/pdfjs/web/viewer.css
+++ b/third-party/pdfjs/web/viewer.css
@@ -1,4 +1,5 @@
/* Copyright 2014 Mozilla Foundation
+ * Modifications made for Epiphany by Jan-Michael Brummer <jan brummer tabos org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -2361,6 +2362,7 @@ html[dir="rtl"] .dropdownToolbarButton::after {
}
.dropdownToolbarButton > select {
+ -webkit-appearance: none;
width: 162px;
height: 28px;
font-size: 12px;
@@ -3132,6 +3134,7 @@ html[dir="rtl"] .toolbarField[type="checkbox"] {
}
.toolbarField.pageNumber {
+ -webkit-appearance: none;
-moz-appearance: textfield; /* hides the spinner in moz */
min-width: 16px;
text-align: right;
diff --git a/third-party/pdfjs/web/viewer.html b/third-party/pdfjs/web/viewer.html
index 123a47d2c..61f1a0e21 100644
--- a/third-party/pdfjs/web/viewer.html
+++ b/third-party/pdfjs/web/viewer.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<!--
Copyright 2012 Mozilla Foundation
+Modifications made for Epiphany by Jan-Michael Brummer <jan brummer tabos org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -21,14 +22,14 @@ Adobe CMap resources are covered by their own copyright but the same license:
See https://github.com/adobe-type-tools/cmap-resources
-->
<html dir="ltr" mozdisallowselectionprint>
- <head>
+ <head pdf_data="%s" pdf_name="%s">
<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>
-
+ <base href="ephy-resource:///org/gnome/epiphany/pdfjs/web/">
<link rel="stylesheet" href="viewer.css">
diff --git a/third-party/pdfjs/web/viewer.js b/third-party/pdfjs/web/viewer.js
index d89902345..1d54e92c7 100644
--- a/third-party/pdfjs/web/viewer.js
+++ b/third-party/pdfjs/web/viewer.js
@@ -3,6 +3,7 @@
* Javascript code in this page
*
* Copyright 2020 Mozilla Foundation
+ * Modifications made for Epiphany by Jan-Michael Brummer <jan brummer tabos org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1973,8 +1974,7 @@ function webViewerInitialized() {
let file;
const queryString = document.location.search.substring(1);
const params = (0, _ui_utils.parseQueryString)(queryString);
- file = "file" in params ? params.file : _app_options.AppOptions.get("defaultUrl");
- validateFileURL(file);
+ file = '';
const fileInput = document.createElement("input");
fileInput.id = appConfig.openFileInputName;
fileInput.className = "fileInput";
@@ -1982,12 +1982,8 @@ function webViewerInitialized() {
fileInput.oncontextmenu = _ui_utils.noContextMenuHandler;
document.body.appendChild(fileInput);
- if (!window.File || !window.FileReader || !window.FileList || !window.Blob) {
- appConfig.toolbar.openFile.setAttribute("hidden", "true");
- appConfig.secondaryToolbar.openFileButton.setAttribute("hidden", "true");
- } else {
- fileInput.value = null;
- }
+ appConfig.toolbar.openFile.setAttribute('hidden', 'true');
+ appConfig.secondaryToolbar.openFileButton.setAttribute('hidden', 'true');
fileInput.addEventListener("change", function (evt) {
const files = evt.target.files;
@@ -2049,8 +2045,18 @@ function webViewerInitialized() {
}
}, true);
+ var file_name = document.head.getAttribute('pdf_name')
+ var raw = atob(document.head.getAttribute('pdf_data'));
+ var raw_length = raw.length;
+ var array = new Uint8Array(new ArrayBuffer(raw_length));
+
+ for(var i = 0; i < raw_length; i++) {
+ array[i] = raw.charCodeAt(i);
+ }
+
try {
- webViewerOpenFileViaURL(file);
+ PDFViewerApplication.open(array);
+ PDFViewerApplication.setTitleUsingUrl(file_name);
} catch (reason) {
PDFViewerApplication.l10n.get("loading_error", null, "An error occurred while loading the
PDF.").then(msg => {
PDFViewerApplication.error(msg, reason);
@@ -6877,6 +6883,8 @@ class PDFHistory {
}
}
+ // FIXME: This currently breaks Epiphany due to rewriting history with baseUrl
+ return;
if (shouldReplace) {
window.history.replaceState(newState, "", newUrl);
} else {
@@ -13897,4 +13905,4 @@ _app.PDFPrintServiceFactory.instance = {
/***/ })
/******/ ]);
-//# sourceMappingURL=viewer.js.map
\ No newline at end of file
+//# sourceMappingURL=viewer.js.map
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]