Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade PDF.js to 2.13.216 #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34,413 changes: 16,703 additions & 17,710 deletions lib/build/pdf.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/build/pdf.js.map

Large diffs are not rendered by default.

24 changes: 13 additions & 11 deletions lib/build/pdf.sandbox.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/build/pdf.sandbox.js.map

Large diffs are not rendered by default.

109,976 changes: 55,135 additions & 54,841 deletions lib/build/pdf.worker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/build/pdf.worker.js.map

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions lib/web/debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ const Stepper = (function StepperClosure() {
this.breakPoints = initialBreakPoints;
this.currentIdx = -1;
this.operatorListIdx = 0;
this.indentLevel = 0;
}

init(operatorList) {
Expand Down Expand Up @@ -382,8 +383,14 @@ const Stepper = (function StepperClosure() {
table.appendChild(charCodeRow);
table.appendChild(fontCharRow);
table.appendChild(unicodeRow);
} else if (fn === "restore") {
this.indentLevel--;
}
line.appendChild(c("td", fn));
line.appendChild(c("td", " ".repeat(this.indentLevel * 2) + fn));
if (fn === "save") {
this.indentLevel++;
}

if (decArgs instanceof HTMLElement) {
line.appendChild(decArgs);
} else {
Expand Down Expand Up @@ -455,9 +462,7 @@ const Stepper = (function StepperClosure() {
var Stats = (function Stats() {
let stats = [];
function clear(node) {
while (node.hasChildNodes()) {
node.removeChild(node.lastChild);
}
node.textContent = ""; // Remove any `node` contents from the DOM.
}
function getStatIndex(pageNumber) {
for (let i = 0, ii = stats.length; i < ii; ++i) {
Expand All @@ -483,8 +488,7 @@ var Stats = (function Stats() {
}
const statsIndex = getStatIndex(pageNumber);
if (statsIndex !== false) {
const b = stats[statsIndex];
this.panel.removeChild(b.div);
stats[statsIndex].div.remove();
stats.splice(statsIndex, 1);
}
const wrapper = document.createElement("div");
Expand Down Expand Up @@ -540,7 +544,8 @@ window.PDFBug = (function PDFBugClosure() {
});
}
},
init(pdfjsLib, container) {
init(pdfjsLib, container, ids) {
this.enable(ids);
/*
* Basic Layout:
* PDFBug
Expand Down Expand Up @@ -589,12 +594,8 @@ window.PDFBug = (function PDFBugClosure() {
tool.init(pdfjsLib);
} else {
panel.textContent =
tool.name +
" is disabled. To enable add " +
' "' +
tool.id +
'" to the pdfBug parameter ' +
"and refresh (separate multiple by commas).";
`${tool.name} is disabled. To enable add "${tool.id}" to ` +
"the pdfBug parameter and refresh (separate multiple by commas).";
}
buttons.push(panelButton);
}
Expand Down
1 change: 1 addition & 0 deletions lib/web/images/secondaryToolbarButton-scrollPage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 0 additions & 8 deletions lib/web/locale/ach/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ bookmark_label=Neno ma kombedi
tools.title=Gintic
tools_label=Gintic
first_page.title=Cit i pot buk mukwongo
first_page.label=Cit i pot buk mukwongo
first_page_label=Cit i pot buk mukwongo
last_page.title=Cit i pot buk magiko
last_page.label=Cit i pot buk magiko
last_page_label=Cit i pot buk magiko
page_rotate_cw.title=Wire i tung lacuc
page_rotate_cw.label=Wire i tung lacuc
page_rotate_cw_label=Wire i tung lacuc
page_rotate_ccw.title=Wire i tung lacam
page_rotate_ccw.label=Wire i tung lacam
page_rotate_ccw_label=Wire i tung lacam

cursor_text_select_tool.title=Cak gitic me yero coc
Expand Down Expand Up @@ -124,7 +120,6 @@ print_progress_close=Juki
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
toggle_sidebar.title=Lok gintic ma inget
toggle_sidebar_notification.title=Lok lanyut me nget (wiyewiye tye i gin acoya/attachments)
toggle_sidebar_label=Lok gintic ma inget
document_outline.title=Nyut Wiyewiye me Gin acoya (dii-kiryo me yaro/kano jami weng)
document_outline_label=Pek pa gin acoya
Expand Down Expand Up @@ -184,9 +179,6 @@ page_scale_actual=Dite kikome
# numerical scale value.
page_scale_percent={{scale}}%

# Loading indicator messages
loading_error_indicator=Bal

loading_error=Bal otime kun cano PDF.
invalid_file_error=Pwail me PDF ma pe atir onyo obale woko.
missing_file_error=Pwail me PDF tye ka rem.
Expand Down
8 changes: 0 additions & 8 deletions lib/web/locale/af/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ bookmark_label=Huidige aansig
tools.title=Nutsgoed
tools_label=Nutsgoed
first_page.title=Gaan na eerste bladsy
first_page.label=Gaan na eerste bladsy
first_page_label=Gaan na eerste bladsy
last_page.title=Gaan na laaste bladsy
last_page.label=Gaan na laaste bladsy
last_page_label=Gaan na laaste bladsy
page_rotate_cw.title=Roteer kloksgewys
page_rotate_cw.label=Roteer kloksgewys
page_rotate_cw_label=Roteer kloksgewys
page_rotate_ccw.title=Roteer anti-kloksgewys
page_rotate_ccw.label=Roteer anti-kloksgewys
page_rotate_ccw_label=Roteer anti-kloksgewys

cursor_text_select_tool.title=Aktiveer gereedskap om teks te merk
Expand Down Expand Up @@ -101,7 +97,6 @@ print_progress_close=Kanselleer
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
toggle_sidebar.title=Sypaneel aan/af
toggle_sidebar_notification.title=Sypaneel aan/af (dokument bevat skema/aanhegsels)
toggle_sidebar_label=Sypaneel aan/af
document_outline.title=Wys dokumentskema (dubbelklik om alle items oop/toe te vou)
document_outline_label=Dokumentoorsig
Expand Down Expand Up @@ -161,9 +156,6 @@ page_scale_actual=Werklike grootte
# numerical scale value.
page_scale_percent={{scale}}%

# Loading indicator messages
loading_error_indicator=Fout

loading_error='n Fout het voorgekom met die laai van die PDF.
invalid_file_error=Ongeldige of korrupte PDF-lêer.
missing_file_error=PDF-lêer is weg.
Expand Down
11 changes: 0 additions & 11 deletions lib/web/locale/an/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ bookmark_label=Vista actual
tools.title=Ferramientas
tools_label=Ferramientas
first_page.title=Ir ta la primer pachina
first_page.label=Ir ta la primer pachina
first_page_label=Ir ta la primer pachina
last_page.title=Ir ta la zaguer pachina
last_page.label=Ir ta la zaguera pachina
last_page_label=Ir ta la zaguer pachina
page_rotate_cw.title=Chirar enta la dreita
page_rotate_cw.label=Chirar enta la dreita
page_rotate_cw_label=Chira enta la dreita
page_rotate_ccw.title=Chirar enta la zurda
page_rotate_ccw.label=Chirar en sentiu antihorario
page_rotate_ccw_label=Chirar enta la zurda

cursor_text_select_tool.title=Activar la ferramienta de selección de texto
Expand Down Expand Up @@ -137,7 +133,6 @@ print_progress_close=Cancelar
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
toggle_sidebar.title=Amostrar u amagar a barra lateral
toggle_sidebar_notification.title=Cambiar barra lateral (lo documento contiene esquema/adchuntos)
toggle_sidebar_notification2.title=Cambiar barra lateral (lo documento contiene esquema/adchuntos/capas)
toggle_sidebar_label=Amostrar a barra lateral
document_outline.title=Amostrar esquema d'o documento (fer doble clic pa expandir/compactar totz los items)
Expand All @@ -151,9 +146,6 @@ thumbs_label=Miniaturas
findbar.title=Trobar en o documento
findbar_label=Trobar

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Pachina {{page}}

additional_layers=Capas adicionals
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
Expand Down Expand Up @@ -226,9 +218,6 @@ page_scale_actual=Grandaria actual
# numerical scale value.
page_scale_percent={{scale}}%

# Loading indicator messages
loading_error_indicator=Error

loading_error=S'ha produciu una error en cargar o PDF.
invalid_file_error=O PDF no ye valido u ye estorbau.
missing_file_error=No i ha fichero PDF.
Expand Down
11 changes: 0 additions & 11 deletions lib/web/locale/ar/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ bookmark_label=المنظور الحالي
tools.title=الأدوات
tools_label=الأدوات
first_page.title=انتقل إلى الصفحة الأولى
first_page.label=انتقل إلى الصفحة الأولى
first_page_label=انتقل إلى الصفحة الأولى
last_page.title=انتقل إلى الصفحة الأخيرة
last_page.label=انتقل إلى الصفحة الأخيرة
last_page_label=انتقل إلى الصفحة الأخيرة
page_rotate_cw.title=أدر باتجاه عقارب الساعة
page_rotate_cw.label=أدر باتجاه عقارب الساعة
page_rotate_cw_label=أدر باتجاه عقارب الساعة
page_rotate_ccw.title=أدر بعكس اتجاه عقارب الساعة
page_rotate_ccw.label=أدر بعكس اتجاه عقارب الساعة
page_rotate_ccw_label=أدر بعكس اتجاه عقارب الساعة

cursor_text_select_tool.title=فعّل أداة اختيار النص
Expand Down Expand Up @@ -137,7 +133,6 @@ print_progress_close=ألغِ
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
toggle_sidebar.title=بدّل ظهور الشريط الجانبي
toggle_sidebar_notification.title=بدّل ظهور الشريط الجانبي (يحتوي المستند على مخطط أو مرفقات)
toggle_sidebar_notification2.title=بدّل ظهور الشريط الجانبي (يحتوي المستند على مخطط أو مرفقات أو طبقات)
toggle_sidebar_label=بدّل ظهور الشريط الجانبي
document_outline.title=اعرض فهرس المستند (نقر مزدوج لتمديد أو تقليص كل العناصر)
Expand All @@ -151,9 +146,6 @@ thumbs_label=مُصغّرات
findbar.title=ابحث في المستند
findbar_label=ابحث

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=صفحة {{page}}

additional_layers=الطبقات الإضافية
# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
page_landmark=صفحة {{page}}
Expand Down Expand Up @@ -228,9 +220,6 @@ page_scale_actual=الحجم الفعلي
# numerical scale value.
page_scale_percent={{scale}}٪

# Loading indicator messages
loading_error_indicator=عطل

# Loading indicator messages
loading=يحمّل…
loading_error=حدث عطل أثناء تحميل ملف PDF.
Expand Down
6 changes: 0 additions & 6 deletions lib/web/locale/ast/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ thumbs.title=Amosar les miniatures
thumbs_label=Miniatures
findbar_label=Atopar

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Páxina {{page}}

additional_layers=Capes adicionales
# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
page_landmark=Páxina {{page}}
Expand Down Expand Up @@ -190,9 +187,6 @@ page_scale_actual=Tamañu real
# numerical scale value.
page_scale_percent={{scale}}%

# Loading indicator messages
loading_error_indicator=Fallu

# Loading indicator messages
loading=Cargando…
loading_error=Asocedió un fallu mentanto se cargaba'l PDF.
Expand Down
11 changes: 0 additions & 11 deletions lib/web/locale/az/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ bookmark_label=Hazırkı görünüş
tools.title=Alətlər
tools_label=Alətlər
first_page.title=İlk Səhifəyə get
first_page.label=İlk Səhifəyə get
first_page_label=İlk Səhifəyə get
last_page.title=Son Səhifəyə get
last_page.label=Son Səhifəyə get
last_page_label=Son Səhifəyə get
page_rotate_cw.title=Saat İstiqamətində Fırlat
page_rotate_cw.label=Saat İstiqamətində Fırlat
page_rotate_cw_label=Saat İstiqamətində Fırlat
page_rotate_ccw.title=Saat İstiqamətinin Əksinə Fırlat
page_rotate_ccw.label=Saat İstiqamətinin Əksinə Fırlat
page_rotate_ccw_label=Saat İstiqamətinin Əksinə Fırlat

cursor_text_select_tool.title=Yazı seçmə alətini aktivləşdir
Expand Down Expand Up @@ -137,7 +133,6 @@ print_progress_close=Ləğv et
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
toggle_sidebar.title=Yan Paneli Aç/Bağla
toggle_sidebar_notification.title=Yan paneli çevir (sənəddə icmal/bağlama var)
toggle_sidebar_notification2.title=Yan paneli çevir (sənəddə icmal/bağlamalar/laylar mövcuddur)
toggle_sidebar_label=Yan Paneli Aç/Bağla
document_outline.title=Sənədin eskizini göstər (bütün bəndləri açmaq/yığmaq üçün iki dəfə klikləyin)
Expand All @@ -151,9 +146,6 @@ thumbs_label=Kiçik şəkillər
findbar.title=Sənəddə Tap
findbar_label=Tap

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Səhifə {{page}}

additional_layers=Əlavə laylar
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
Expand Down Expand Up @@ -226,9 +218,6 @@ page_scale_actual=Hazırkı Həcm
# numerical scale value.
page_scale_percent={{scale}}%

# Loading indicator messages
loading_error_indicator=Səhv

loading_error=PDF yüklenərkən bir səhv yarandı.
invalid_file_error=Səhv və ya zədələnmiş olmuş PDF fayl.
missing_file_error=PDF fayl yoxdur.
Expand Down
13 changes: 2 additions & 11 deletions lib/web/locale/be/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,21 @@ bookmark_label=Цяперашняя праява
tools.title=Прылады
tools_label=Прылады
first_page.title=Перайсці на першую старонку
first_page.label=Перайсці на першую старонку
first_page_label=Перайсці на першую старонку
last_page.title=Перайсці на апошнюю старонку
last_page.label=Перайсці на апошнюю старонку
last_page_label=Перайсці на апошнюю старонку
page_rotate_cw.title=Павярнуць па сонцу
page_rotate_cw.label=Павярнуць па сонцу
page_rotate_cw_label=Павярнуць па сонцу
page_rotate_ccw.title=Павярнуць супраць сонца
page_rotate_ccw.label=Павярнуць супраць сонца
page_rotate_ccw_label=Павярнуць супраць сонца

cursor_text_select_tool.title=Уключыць прыладу выбару тэксту
cursor_text_select_tool_label=Прылада выбару тэксту
cursor_hand_tool.title=Уключыць ручную прыладу
cursor_hand_tool_label=Ручная прылада

scroll_page.title=Выкарыстоўваць пракрутку старонкi
scroll_page_label=Пракрутка старонкi
scroll_vertical.title=Ужываць вертыкальную пракрутку
scroll_vertical_label=Вертыкальная пракрутка
scroll_horizontal.title=Ужываць гарызантальную пракрутку
Expand Down Expand Up @@ -137,7 +135,6 @@ print_progress_close=Скасаваць
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
toggle_sidebar.title=Паказаць/схаваць бакавую панэль
toggle_sidebar_notification.title=Паказаць/схаваць бакавую панэль (дакумент мае змест/укладанні)
toggle_sidebar_notification2.title=Паказаць/схаваць бакавую панэль (дакумент мае змест/укладанні/пласты)
toggle_sidebar_label=Паказаць/схаваць бакавую панэль
document_outline.title=Паказаць структуру дакумента (двайная пстрычка, каб разгарнуць /згарнуць усе элементы)
Expand All @@ -153,9 +150,6 @@ current_outline_item_label=Бягучы элемент структуры
findbar.title=Пошук у дакуменце
findbar_label=Знайсці

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Старонка {{page}}

additional_layers=Дадатковыя пласты
# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
page_landmark=Старонка {{page}}
Expand Down Expand Up @@ -230,9 +224,6 @@ page_scale_actual=Сапраўдны памер
# numerical scale value.
page_scale_percent={{scale}}%

# Loading indicator messages
loading_error_indicator=Памылка

# Loading indicator messages
loading=Чытаецца…
loading_error=Здарылася памылка падчас загрузкі PDF.
Expand Down
8 changes: 0 additions & 8 deletions lib/web/locale/bg/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ bookmark_label=Текущ изглед
tools.title=Инструменти
tools_label=Инструменти
first_page.title=Към първата страница
first_page.label=Към първата страница
first_page_label=Към първата страница
last_page.title=Към последната страница
last_page.label=Към последната страница
last_page_label=Към последната страница
page_rotate_cw.title=Завъртане по час. стрелка
page_rotate_cw.label=Завъртане по часовниковата стрелка
page_rotate_cw_label=Завъртане по часовниковата стрелка
page_rotate_ccw.title=Завъртане обратно на час. стрелка
page_rotate_ccw.label=Завъртане обратно на часовниковата стрелка
page_rotate_ccw_label=Завъртане обратно на часовниковата стрелка

cursor_text_select_tool.title=Включване на инструмента за избор на текст
Expand Down Expand Up @@ -137,7 +133,6 @@ print_progress_close=Отказ
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
toggle_sidebar.title=Превключване на страничната лента
toggle_sidebar_notification.title=Превключване на страничната лента (документи със структура/прикачени файлове)
toggle_sidebar_label=Превключване на страничната лента
document_outline.title=Показване на структурата на документа (двукратно щракване за свиване/разгъване на всичко)
document_outline_label=Структура на документа
Expand Down Expand Up @@ -219,9 +214,6 @@ page_scale_actual=Действителен размер
# numerical scale value.
page_scale_percent={{scale}}%

# Loading indicator messages
loading_error_indicator=Грешка

loading_error=Получи се грешка при зареждане на PDF-а.
invalid_file_error=Невалиден или повреден PDF файл.
missing_file_error=Липсващ PDF файл.
Expand Down
Loading