Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Replace PDF.js v2.0.943 files with v2.1.266 files
The example PDF ("compressed.tracemonkey-pldi-09.pdf") is not needed and
thus was not included; "templates/viewer.php" acts as "viewer.html", so
the later was not included either.

On the other hand, source maps were kept so they could be used in case
of need.

Note that "viewer.html" did not change between v2.0.943 and v2.1.266, so
there is no need to update "templates/viewer.php".

Also note that, unlike v2.0.943, PDF.js v2.1.266 works out of the box
with Nextcloud Content Security Policy.

Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot[bot] committed Mar 18, 2020
commit fc333643ab39016333bdf52fbb741a4b68386696
26,424 changes: 15,329 additions & 11,095 deletions vendor/pdfjs/build/pdf.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

16,681 changes: 12,497 additions & 4,184 deletions vendor/pdfjs/build/pdf.worker.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

18 changes: 7 additions & 11 deletions vendor/pdfjs/web/debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,26 @@ var FontInspector = (function FontInspectorClosure() {
var active = false;
var fontAttribute = 'data-font-name';
function removeSelection() {
var divs = document.querySelectorAll('div[' + fontAttribute + ']');
for (var i = 0, ii = divs.length; i < ii; ++i) {
var div = divs[i];
let divs = document.querySelectorAll(`span[${fontAttribute}]`);
for (let div of divs) {
div.className = '';
}
}
function resetSelection() {
var divs = document.querySelectorAll('div[' + fontAttribute + ']');
for (var i = 0, ii = divs.length; i < ii; ++i) {
var div = divs[i];
let divs = document.querySelectorAll(`span[${fontAttribute}]`);
for (let div of divs) {
div.className = 'debuggerHideText';
}
}
function selectFont(fontName, show) {
var divs = document.querySelectorAll('div[' + fontAttribute + '=' +
fontName + ']');
for (var i = 0, ii = divs.length; i < ii; ++i) {
var div = divs[i];
let divs = document.querySelectorAll(`span[${fontAttribute}=${fontName}]`);
for (let div of divs) {
div.className = show ? 'debuggerShowText' : 'debuggerHideText';
}
}
function textLayerClick(e) {
if (!e.target.dataset.fontName ||
e.target.tagName.toUpperCase() !== 'DIV') {
e.target.tagName.toUpperCase() !== 'SPAN') {
return;
}
var fontName = e.target.dataset.fontName;
Expand Down
12 changes: 8 additions & 4 deletions vendor/pdfjs/web/locale/ast/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ zoom_out_label=Reducir
zoom_in.title=Aumentar
zoom_in_label=Aumentar
zoom.title=Tamañu
presentation_mode.title=
presentation_mode_label=
open_file.title=Abrir ficheru
open_file_label=Abrir
print.title=Imprentar
Expand All @@ -54,10 +52,8 @@ last_page.title=Dir a la postrer páxina
last_page.label=Dir a la cabera páxina
last_page_label=Dir a la postrer páxina
page_rotate_cw.title=Xirar en sen horariu
page_rotate_cw.label=
page_rotate_cw_label=Xirar en sen horariu
page_rotate_ccw.title=Xirar en sen antihorariu
page_rotate_ccw.label=
page_rotate_ccw_label=Xirar en sen antihorariu


Expand Down Expand Up @@ -144,6 +140,14 @@ find_highlight=Remarcar toos
find_match_case_label=Coincidencia de mayús./minús.
find_reached_top=Algamóse'l principiu del documentu, siguir dende'l final
find_reached_bottom=Algamóse'l final del documentu, siguir dende'l principiu
# LOCALIZATION NOTE (find_match_count): The supported plural forms are
# [one|two|few|many|other], with [other] as the default value.
# "{{current}}" and "{{total}}" will be replaced by a number representing the
# index of the currently active find result, respectively a number representing
# the total number of matches in the document.
# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
# [zero|one|two|few|many|other], with [other] as the default value.
# "{{limit}}" will be replaced by a numerical value.
find_not_found=Frase non atopada

# Error panel labels
Expand Down
17 changes: 17 additions & 0 deletions vendor/pdfjs/web/locale/bn-BD/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ cursor_text_select_tool_label=লেখা নির্বাচক টুল
cursor_hand_tool.title=হ্যান্ড টুল সক্রিয় করুন
cursor_hand_tool_label=হ্যান্ড টুল

scroll_vertical.title=উলম্ব স্ক্রলিং ব্যবহার করুন
scroll_vertical_label=উলম্ব স্ক্রলিং
scroll_horizontal.title=অনুভূমিক স্ক্রলিং ব্যবহার করুন
scroll_horizontal_label=অনুভূমিক স্ক্রলিং


# Document properties dialog box
Expand Down Expand Up @@ -159,9 +163,22 @@ find_reached_bottom=পাতার শেষে পৌছে গেছে, উ
# "{{current}}" and "{{total}}" will be replaced by a number representing the
# index of the currently active find result, respectively a number representing
# the total number of matches in the document.
find_match_count={[ plural(total) ]}
find_match_count[one]={{total}} এর {{current}} মিল
find_match_count[two]={{total}} এর {{current}} মিল
find_match_count[few]={{total}} এর {{current}} মিল
find_match_count[many]={{total}} এর {{current}} মিল
find_match_count[other]={{total}} এর {{current}} মিল
# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
# [zero|one|two|few|many|other], with [other] as the default value.
# "{{limit}}" will be replaced by a numerical value.
find_match_count_limit={[ plural(limit) ]}
find_match_count_limit[zero]={{limit}} এর বেশি মিল
find_match_count_limit[one]={{limit}} এর বেশি মিল
find_match_count_limit[two]={{limit}} এর বেশি মিল
find_match_count_limit[few]={{limit}} এর বেশি মিল
find_match_count_limit[many]={{limit}} এর বেশি মিল
find_match_count_limit[other]={{limit}} এর বেশি মিল
find_not_found=বাক্যাংশ পাওয়া যায়নি

# Error panel labels
Expand Down
65 changes: 65 additions & 0 deletions vendor/pdfjs/web/locale/bn-IN/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,24 @@ 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_vertical.title=উল্লম্ব স্ক্রোলিং ব্যবহার করুন
scroll_vertical_label=উল্লম্ব স্ক্রোলিং
scroll_horizontal.title=অনুভূমিক স্ক্রোলিং ব্যবহার করুন
scroll_horizontal_label=অনুভূমিক স্ক্রোলিং
scroll_wrapped.title=আবৃত স্ক্রোলিং ব্যবহার করুন
scroll_wrapped_label=আবৃত স্ক্রোলিং

spread_none.title=ছড়িয়ে পরা পাতাকে যোগ করবেন না
spread_none_label=ছড়ানো নয়
spread_odd.title=বিজোড়-সংখ্যার পৃষ্ঠাগুলির সাথে শুরু হওয়া পৃষ্ঠা স্প্রেডগুলিতে যোগদান করুন
spread_odd_label=বিজোড় স্প্রেডস
spread_even.title=জোড়-সংখ্যার পৃষ্ঠাগুলির সাথে শুরু হওয়া পৃষ্ঠা স্প্রেডগুলিতে যোগদান করুন
spread_even_label=জোড় স্প্রেড

# Document properties dialog box
document_properties.title=নথির বৈশিষ্ট্য…
Expand All @@ -85,6 +103,28 @@ document_properties_creator=নির্মাতা:
document_properties_producer=PDF নির্মাতা:
document_properties_version=PDF সংস্করণ:
document_properties_page_count=মোট পৃষ্ঠা:
document_properties_page_size=পৃষ্ঠার সাইজ:
document_properties_page_size_unit_inches=in
document_properties_page_size_unit_millimeters=mm
document_properties_page_size_orientation_portrait=উলম্ব
document_properties_page_size_orientation_landscape=আড়াআড়ি
document_properties_page_size_name_a3=A3
document_properties_page_size_name_a4=A4
document_properties_page_size_name_letter=লেটার
document_properties_page_size_name_legal=লিগাল
# LOCALIZATION NOTE (document_properties_page_size_dimension_string):
# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by
# the size, respectively their unit of measurement and orientation, of the (current) page.
document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}} ({{orientation}})
# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string):
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
# the document; usually called "Fast Web View" in English locales of Adobe software.
document_properties_linearized=দ্রুত ওয়েব প্রদর্শন:
document_properties_linearized_yes=হ্যাঁ
document_properties_linearized_no=না
document_properties_close=বন্ধ করুন

print_progress_message=ডকুমেন্ট প্রিন্টিং-র জন্য তৈরি করা হচ্ছে...
Expand All @@ -97,6 +137,7 @@ 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=ডকুমেন্ট আউটলাইন দেখান (দুবার ক্লিক করুন বাড়াতে//collapse সমস্ত আইটেম)
document_outline_label=ডকুমেন্ট আউটলাইন
Expand All @@ -116,14 +157,38 @@ thumb_page_title=পৃষ্ঠা {{page}}
thumb_page_canvas=পৃষ্ঠা {{page}}-র থাম্ব-নেইল

# Find panel button title and messages
find_input.title=খুঁজুন
find_input.placeholder=নথির মধ্যে খুঁজুন…
find_previous.title=চিহ্নিত পংক্তির পূর্ববর্তী উপস্থিতি অনুসন্ধান করুন
find_previous_label=পূর্ববর্তী
find_next.title=চিহ্নিত পংক্তির পরবর্তী উপস্থিতি অনুসন্ধান করুন
find_next_label=পরবর্তী
find_highlight=সমগ্র উজ্জ্বল করুন
find_match_case_label=হরফের ছাঁদ মেলানো হবে
find_entire_word_label=সম্পূর্ণ শব্দগুলি
find_reached_top=পৃষ্ঠার প্রারম্ভে পৌছে গেছে, নীচের অংশ থেকে আরম্ভ করা হবে
find_reached_bottom=পৃষ্ঠার অন্তিম প্রান্তে পৌছে গেছে, প্রথম অংশ থেকে আরম্ভ করা হবে
# LOCALIZATION NOTE (find_match_count): The supported plural forms are
# [one|two|few|many|other], with [other] as the default value.
# "{{current}}" and "{{total}}" will be replaced by a number representing the
# index of the currently active find result, respectively a number representing
# the total number of matches in the document.
find_match_count={[ plural(total) ]}
find_match_count[one]={{total}} এর {{current}} এ মিল
find_match_count[two]={{total}} এর {{current}} মিলছে
find_match_count[few]={{total}} এর {{current}} মিলছে
find_match_count[many]={{total}} এর {{current}} মিলছে
find_match_count[other]={{total}} এর {{current}} মিলছে
# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
# [zero|one|two|few|many|other], with [other] as the default value.
# "{{limit}}" will be replaced by a numerical value.
find_match_count_limit={[ plural(limit) ]}
find_match_count_limit[zero]={{limit}} এর বেশি মিলছে
find_match_count_limit[one]={{limit}} এর থেকে বেশি মিলছে
find_match_count_limit[two]={{limit}} এর থেকে বেশি মিলছে
find_match_count_limit[few]={{limit}} এর থেকে বেশি মিলছে
find_match_count_limit[many]={{limit}} এর থেকে বেশি মিলছে
find_match_count_limit[other]={{limit}} এর থেকে বেশি মিলছে
find_not_found=পংক্তি পাওয়া যায়নি

# Error panel labels
Expand Down
29 changes: 29 additions & 0 deletions vendor/pdfjs/web/locale/ca/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ scroll_vertical.title=Utilitza el desplaçament vertical
scroll_vertical_label=Desplaçament vertical
scroll_horizontal.title=Utilitza el desplaçament horitzontal
scroll_horizontal_label=Desplaçament horitzontal
scroll_wrapped.title=Activa el desplaçament continu
scroll_wrapped_label=Desplaçament continu


# Document properties dialog box
Expand Down Expand Up @@ -112,6 +114,11 @@ document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
# the document; usually called "Fast Web View" in English locales of Adobe software.
document_properties_linearized=Vista web ràpida:
document_properties_linearized_yes=Sí
document_properties_linearized_no=No
document_properties_close=Tanca

print_progress_message=S'està preparant la impressió del document…
Expand Down Expand Up @@ -152,8 +159,30 @@ find_next.title=Cerca la següent coincidència de l'expressió
find_next_label=Següent
find_highlight=Ressalta-ho tot
find_match_case_label=Distingeix entre majúscules i minúscules
find_entire_word_label=Paraules senceres
find_reached_top=S'ha arribat al principi del document, es continua pel final
find_reached_bottom=S'ha arribat al final del document, es continua pel principi
# LOCALIZATION NOTE (find_match_count): The supported plural forms are
# [one|two|few|many|other], with [other] as the default value.
# "{{current}}" and "{{total}}" will be replaced by a number representing the
# index of the currently active find result, respectively a number representing
# the total number of matches in the document.
find_match_count={[ plural(total) ]}
find_match_count[one]={{current}} de {{total}} coincidència
find_match_count[two]={{current}} de {{total}} coincidències
find_match_count[few]={{current}} de {{total}} coincidències
find_match_count[many]={{current}} de {{total}} coincidències
find_match_count[other]={{current}} de {{total}} coincidències
# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
# [zero|one|two|few|many|other], with [other] as the default value.
# "{{limit}}" will be replaced by a numerical value.
find_match_count_limit={[ plural(limit) ]}
find_match_count_limit[zero]=Més de {{limit}} coincidències
find_match_count_limit[one]=Més d'{{limit}} coincidència
find_match_count_limit[two]=Més de {{limit}} coincidències
find_match_count_limit[few]=Més de {{limit}} coincidències
find_match_count_limit[many]=Més de {{limit}} coincidències
find_match_count_limit[other]=Més de {{limit}} coincidències
find_not_found=No s'ha trobat l'expressió

# Error panel labels
Expand Down
25 changes: 25 additions & 0 deletions vendor/pdfjs/web/locale/crh/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
# the document; usually called "Fast Web View" in English locales of Adobe software.
document_properties_linearized=Tez Ağ Körünimi:
document_properties_linearized_yes=Ebet
document_properties_linearized_no=Hayır
document_properties_close=Qapat

print_progress_message=Vesiqa bastırılmağa azırlanıla…
Expand Down Expand Up @@ -162,8 +165,30 @@ find_next.title=İbareniñ soñraki rastkelişini tap
find_next_label=Soñraki
find_highlight=Episini ışıqlandır
find_match_case_label=Büyük-ufaq hassasiyeti
find_entire_word_label=Bütün sözler
find_reached_top=Saifeniñ töpesi irişildi, tüpten devam etildi
find_reached_bottom=Saifeniñ soñu irişildi, töpeden devam etildi
# LOCALIZATION NOTE (find_match_count): The supported plural forms are
# [one|two|few|many|other], with [other] as the default value.
# "{{current}}" and "{{total}}" will be replaced by a number representing the
# index of the currently active find result, respectively a number representing
# the total number of matches in the document.
find_match_count={[ plural(total) ]}
find_match_count[one]={{total}} eşleşmeden {{current}} eşleşme
find_match_count[two]={{total}} eşleşmeden {{current}}. eşleşme
find_match_count[few]={{total}} eşleşmeden {{current}}. eşleşme
find_match_count[many]={{total}} eşleşmeden {{current}}. eşleşme
find_match_count[other]={{total}} eşleşmeden {{current}}. eşleşme
# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
# [zero|one|two|few|many|other], with [other] as the default value.
# "{{limit}}" will be replaced by a numerical value.
find_match_count_limit={[ plural(limit) ]}
find_match_count_limit[zero]={{limit}} eşleşmeden fazla
find_match_count_limit[one]={{limit}} eşleşmeden fazla
find_match_count_limit[two]={{limit}} eşleşmeden fazla
find_match_count_limit[few]={{limit}} eşleşmeden fazla
find_match_count_limit[many]={{limit}} eşleşmeden fazla
find_match_count_limit[other]={{limit}} eşleşmeden fazla
find_not_found=İbare tapılmadı

# Error panel labels
Expand Down
2 changes: 1 addition & 1 deletion vendor/pdfjs/web/locale/cs/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ presentation_mode_label=Režim prezentace
open_file.title=Otevře soubor
open_file_label=Otevřít
print.title=Vytiskne dokument
print_label=Tisk
print_label=Vytisknout
download.title=Stáhne dokument
download_label=Stáhnout
bookmark.title=Současný pohled (kopírovat nebo otevřít v novém okně)
Expand Down
13 changes: 13 additions & 0 deletions vendor/pdfjs/web/locale/de/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,22 @@ find_reached_bottom=Ende des Dokuments erreicht, fahre am Anfang fort
# "{{current}}" and "{{total}}" will be replaced by a number representing the
# index of the currently active find result, respectively a number representing
# the total number of matches in the document.
find_match_count={[ plural(total) ]}
find_match_count[one]={{current}} von {{total}} Übereinstimmung
find_match_count[two]={{current}} von {{total}} Übereinstimmungen
find_match_count[few]={{current}} von {{total}} Übereinstimmungen
find_match_count[many]={{current}} von {{total}} Übereinstimmungen
find_match_count[other]={{current}} von {{total}} Übereinstimmungen
# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
# [zero|one|two|few|many|other], with [other] as the default value.
# "{{limit}}" will be replaced by a numerical value.
find_match_count_limit={[ plural(limit) ]}
find_match_count_limit[zero]=Mehr als {{limit}} Übereinstimmungen
find_match_count_limit[one]=Mehr als {{limit}} Übereinstimmung
find_match_count_limit[two]=Mehr als {{limit}} Übereinstimmungen
find_match_count_limit[few]=Mehr als {{limit}} Übereinstimmungen
find_match_count_limit[many]=Mehr als {{limit}} Übereinstimmungen
find_match_count_limit[other]=Mehr als {{limit}} Übereinstimmungen
find_not_found=Suchbegriff nicht gefunden

# Error panel labels
Expand Down
Loading