Skip to content

Commit

Permalink
Update pdf.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Sep 10, 2023
1 parent 996ed6d commit db741f5
Show file tree
Hide file tree
Showing 21 changed files with 4,195 additions and 4,063 deletions.
208 changes: 132 additions & 76 deletions build/pdf.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/pdf.sandbox.js

Large diffs are not rendered by default.

7,909 changes: 3,959 additions & 3,950 deletions build/pdf.worker.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions web/locale/el/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=Σχέδιο
editor_stamp.title=Προσθήκη εικόνας
editor_stamp_label=Προσθήκη εικόνας

editor_stamp1.title=Προσθήκη ή επεξεργασία εικόνων
editor_stamp1_label=Προσθήκη ή επεξεργασία εικόνων

free_text2_default_content=Ξεκινήστε να πληκτρολογείτε…

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=Χρώμα
editor_ink_thickness=Πάχος
editor_ink_opacity=Αδιαφάνεια

editor_stamp_add_image_label=Προσθήκη εικόνας
editor_stamp_add_image.title=Προσθήκη εικόνας

# Editor aria
editor_free_text2_aria_label=Επεξεργασία κειμένου
editor_ink2_aria_label=Επεξεργασία σχεδίων
Expand Down
6 changes: 6 additions & 0 deletions web/locale/eu/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=Marrazkia
editor_stamp.title=Gehitu irudia
editor_stamp_label=Gehitu irudia

editor_stamp1.title=Gehitu edo editatu irudiak
editor_stamp1_label=Gehitu edo editatu irudiak

free_text2_default_content=Hasi idazten…

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=Kolorea
editor_ink_thickness=Loditasuna
editor_ink_opacity=Opakutasuna

editor_stamp_add_image_label=Gehitu irudia
editor_stamp_add_image.title=Gehitu irudia

# Editor aria
editor_free_text2_aria_label=Testu-editorea
editor_ink2_aria_label=Marrazki-editorea
Expand Down
6 changes: 6 additions & 0 deletions web/locale/fi/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=Piirros
editor_stamp.title=Lisää kuva
editor_stamp_label=Lisää kuva

editor_stamp1.title=Lisää tai muokkaa kuvia
editor_stamp1_label=Lisää tai muokkaa kuvia

free_text2_default_content=Aloita kirjoittaminen…

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=Väri
editor_ink_thickness=Paksuus
editor_ink_opacity=Peittävyys

editor_stamp_add_image_label=Lisää kuva
editor_stamp_add_image.title=Lisää kuva

# Editor aria
editor_free_text2_aria_label=Tekstimuokkain
editor_ink2_aria_label=Piirrustusmuokkain
Expand Down
6 changes: 6 additions & 0 deletions web/locale/fur/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=Dissen
editor_stamp.title=Zonte une imagjin
editor_stamp_label=Zonte une imagjin

editor_stamp1.title=Zonte o modifiche imagjins
editor_stamp1_label=Zonte o modifiche imagjins

free_text2_default_content=Scomence a scrivi…

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=Colôr
editor_ink_thickness=Spessôr
editor_ink_opacity=Opacitât

editor_stamp_add_image_label=Zonte imagjin
editor_stamp_add_image.title=Zonte imagjin

# Editor aria
editor_free_text2_aria_label=Editôr di test
editor_ink2_aria_label=Editôr dissens
Expand Down
14 changes: 7 additions & 7 deletions web/locale/gn/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ download_button_label=Mboguejy
bookmark1.title=Kuatiarogue ag̃agua (Ehecha URL kuatiarogue ag̃agua)
bookmark1_label=Kuatiarogue Ag̃agua
# LOCALIZATION NOTE (open_in_app.title): This string is used in Firefox for Android.
open_in_app.title=Embojuruja tembipuru’ípe
open_in_app.title=Embojuruja tembiporu’ípe
# LOCALIZATION NOTE (open_in_app_label): This string is used in Firefox for Android. Length of the translation matters since we are in a mobile context, with limited screen estate.
open_in_app_label=Embojuruja tembipuru’ípe
open_in_app_label=Embojuruja tembiporu’ípe

# Secondary toolbar and context menu
tools.title=Tembipuru
tools_label=Tembipuru
tools.title=Tembiporu
tools_label=Tembiporu
first_page.title=Kuatiarogue ñepyrũme jeho
first_page_label=Kuatiarogue ñepyrũme jeho
last_page.title=Kuatiarogue pahápe jeho
Expand All @@ -67,8 +67,8 @@ page_rotate_ccw_label=Aravo rapykue gotyo mbojere

cursor_text_select_tool.title=Emyandy moñe’ẽrã jeporavo rembipuru
cursor_text_select_tool_label=Moñe’ẽrã jeporavo rembipuru
cursor_hand_tool.title=Tembipuru po pegua myandy
cursor_hand_tool_label=Tembipuru po pegua
cursor_hand_tool.title=Tembiporu po pegua myandy
cursor_hand_tool_label=Tembiporu po pegua

scroll_page.title=Eipuru kuatiarogue jeku’e
scroll_page_label=Kuatiarogue jeku’e
Expand Down Expand Up @@ -267,4 +267,4 @@ editor_stamp_add_image.title=Embojuaju ta’ãnga
# Editor aria
editor_free_text2_aria_label=Moñe’ẽrã moheñoiha
editor_ink2_aria_label=Ta’ãnga moheñoiha
editor_ink_canvas_aria_label=Ta’ãnga omoheñóiva puruhára
editor_ink_canvas_aria_label=Ta’ãnga omoheñóiva poruhára
6 changes: 6 additions & 0 deletions web/locale/ja/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=インク注釈
editor_stamp.title=画像を追加します
editor_stamp_label=画像を追加

editor_stamp1.title=画像を追加または編集します
editor_stamp1_label=画像を追加または編集

free_text2_default_content=テキストを入力してください...

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=色
editor_ink_thickness=太さ
editor_ink_opacity=不透明度

editor_stamp_add_image_label=画像を追加
editor_stamp_add_image.title=画像を追加します

# Editor aria
editor_free_text2_aria_label=フリーテキスト注釈エディター
editor_ink2_aria_label=インク注釈エディター
Expand Down
13 changes: 10 additions & 3 deletions web/locale/kab/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,18 @@ open_file.title=Ldi Afaylu
open_file_label=Ldi
print.title=Siggez
print_label=Siggez

save.title=Sekles
save_label=Sekles
# LOCALIZATION NOTE (download_button.title): used in Firefox for Android as a tooltip for the download button (“download” is a verb).
download_button.title=Sader
# LOCALIZATION NOTE (download_button_label): used in Firefox for Android as a label for the download button (“download” is a verb).
# Length of the translation matters since we are in a mobile context, with limited screen estate.
download_button_label=Sader
bookmark1.title=Asebter amiran (Sken-d tansa URL seg usebter amiran)
bookmark1_label=Asebter amiran

# LOCALIZATION NOTE (open_in_app.title): This string is used in Firefox for Android.
open_in_app.title=Ldi deg usnas
# LOCALIZATION NOTE (open_in_app_label): This string is used in Firefox for Android. Length of the translation matters since we are in a mobile context, with limited screen estate.
open_in_app_label=Ldi deg usnas

# Secondary toolbar and context menu
Expand Down Expand Up @@ -215,7 +220,6 @@ loading_error=Teḍra-d tuccḍa deg alluy n PDF:
invalid_file_error=Afaylu PDF arameɣtu neɣ yexṣeṛ.
missing_file_error=Ulac afaylu PDF.
unexpected_response_error=Aqeddac yerra-d yir tiririt ur nettwaṛǧi ara.

rendering_error=Teḍra-d tuccḍa deg uskan n usebter.

# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
Expand All @@ -242,6 +246,8 @@ editor_free_text2_label=Aḍris
editor_ink2.title=Suneɣ
editor_ink2_label=Suneɣ



free_text2_default_content=Bdu tira...

# Editor Parameters
Expand All @@ -251,6 +257,7 @@ editor_ink_color=Ini
editor_ink_thickness=Tuzert
editor_ink_opacity=Tebrek


# Editor aria
editor_free_text2_aria_label=Amaẓrag n uḍris
editor_ink2_aria_label=Amaẓrag n usuneɣ
Expand Down
11 changes: 11 additions & 0 deletions web/locale/nb-NO/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ print.title=Skriv ut
print_label=Skriv ut
save.title=Lagre
save_label=Lagre
# LOCALIZATION NOTE (download_button.title): used in Firefox for Android as a tooltip for the download button (“download” is a verb).
download_button.title=Last ned
# LOCALIZATION NOTE (download_button_label): used in Firefox for Android as a label for the download button (“download” is a verb).
# Length of the translation matters since we are in a mobile context, with limited screen estate.
download_button_label=Last ned
bookmark1.title=Gjeldende side (se URL fra gjeldende side)
bookmark1_label=Gjeldende side
# LOCALIZATION NOTE (open_in_app.title): This string is used in Firefox for Android.
Expand Down Expand Up @@ -244,6 +249,9 @@ editor_ink2_label=Tegn
editor_stamp.title=Legg til et bilde
editor_stamp_label=Legg til et bilde

editor_stamp1.title=Legg til eller rediger bilder
editor_stamp1_label=Legg til eller rediger bilder

free_text2_default_content=Begynn å skrive…

# Editor Parameters
Expand All @@ -253,6 +261,9 @@ editor_ink_color=Farge
editor_ink_thickness=Tykkelse
editor_ink_opacity=Ugjennomsiktighet

editor_stamp_add_image_label=Legg til bilde
editor_stamp_add_image.title=Legg til bilde

# Editor aria
editor_free_text2_aria_label=Tekstredigering
editor_ink2_aria_label=Tegneredigering
Expand Down
6 changes: 6 additions & 0 deletions web/locale/nn-NO/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=Teikne
editor_stamp.title=Legg til eit bilde
editor_stamp_label=Legg til eit bilde

editor_stamp1.title=Legg til eller rediger bilde
editor_stamp1_label=Legg til eller rediger bilde

free_text2_default_content=Byrje å skrive…

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=Farge
editor_ink_thickness=Tjukkleik
editor_ink_opacity=Ugjennomskinleg

editor_stamp_add_image_label=Legg til bilde
editor_stamp_add_image.title=Legg til bilde

# Editor aria
editor_free_text2_aria_label=Tekstredigering
editor_ink2_aria_label=Teikneredigering
Expand Down
6 changes: 6 additions & 0 deletions web/locale/rm/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=Dissegnar
editor_stamp.title=Agiuntar in maletg
editor_stamp_label=Agiuntar in maletg

editor_stamp1.title=Agiuntar u modifitgar maletgs
editor_stamp1_label=Agiuntar u modifitgar maletgs

free_text2_default_content=Cumenzar a tippar…

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=Colur
editor_ink_thickness=Grossezza
editor_ink_opacity=Opacitad

editor_stamp_add_image_label=Agiuntar in maletg
editor_stamp_add_image.title=Agiuntar in maletg

# Editor aria
editor_free_text2_aria_label=Editur da text
editor_ink2_aria_label=Editur dissegn
Expand Down
6 changes: 6 additions & 0 deletions web/locale/sat/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=ᱛᱮᱭᱟᱨ
editor_stamp.title=ᱢᱤᱫᱴᱟᱝ ᱪᱤᱛᱟᱹᱨ ᱥᱮᱞᱮᱫ ᱢᱮ
editor_stamp_label=ᱢᱤᱫᱴᱟᱝ ᱪᱤᱛᱟᱹᱨ ᱥᱮᱞᱮᱫ ᱢᱮ

editor_stamp1.title=ᱪᱤᱛᱟᱹᱨᱠᱚ ᱥᱮᱞᱮᱫ ᱥᱮ ᱥᱟᱯᱲᱟᱣ ᱢᱮ
editor_stamp1_label=ᱪᱤᱛᱟᱹᱨᱠᱚ ᱥᱮᱞᱮᱫ ᱥᱮ ᱥᱟᱯᱲᱟᱣ ᱢᱮ

free_text2_default_content=ᱚᱞ ᱮᱛᱦᱚᱵ ᱢᱮ …

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=ᱨᱚᱝ
editor_ink_thickness=ᱢᱚᱴᱟ
editor_ink_opacity=ᱟᱨᱯᱟᱨ

editor_stamp_add_image_label=ᱪᱤᱛᱟᱹᱨ ᱥᱮᱞᱮᱫ ᱢᱮ
editor_stamp_add_image.title=ᱪᱤᱛᱟᱹᱨ ᱥᱮᱞᱮᱫ ᱢᱮ

# Editor aria
editor_free_text2_aria_label=ᱚᱞ ᱥᱟᱯᱲᱟᱣᱤᱭᱟᱹ
editor_ink2_aria_label=ᱛᱮᱭᱟᱨ ᱥᱟᱯᱲᱟᱣᱤᱭᱟᱹ
Expand Down
2 changes: 2 additions & 0 deletions web/locale/tg/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ editor_ink2_label=Расмкашӣ
editor_stamp.title=Илова кардани тасвир
editor_stamp_label=Илова кардани тасвир

editor_stamp1.title=Илова ё таҳрир кардани тасвирҳо
editor_stamp1_label=Илова ё таҳрир кардани тасвирҳо

free_text2_default_content=Нависед…

Expand Down
6 changes: 6 additions & 0 deletions web/locale/tr/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=Çiz
editor_stamp.title=Resim ekle
editor_stamp_label=Resim ekle

editor_stamp1.title=Resim ekle veya düzenle
editor_stamp1_label=Resim ekle veya düzenle

free_text2_default_content=Yazmaya başlayın…

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=Renk
editor_ink_thickness=Kalınlık
editor_ink_opacity=Saydamlık

editor_stamp_add_image_label=Resim ekle
editor_stamp_add_image.title=Resim ekle

# Editor aria
editor_free_text2_aria_label=Metin düzenleyicisi
editor_ink2_aria_label=Çizim düzenleyicisi
Expand Down
17 changes: 3 additions & 14 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -446,20 +446,7 @@
font-size: calc(9px * var(--scale-factor));
}

.annotationLayer .highlightAnnotation,
.annotationLayer .underlineAnnotation,
.annotationLayer .squigglyAnnotation,
.annotationLayer .strikeoutAnnotation,
.annotationLayer .freeTextAnnotation,
.annotationLayer .lineAnnotation svg line,
.annotationLayer .squareAnnotation svg rect,
.annotationLayer .circleAnnotation svg ellipse,
.annotationLayer .polylineAnnotation svg polyline,
.annotationLayer .polygonAnnotation svg polygon,
.annotationLayer .caretAnnotation,
.annotationLayer .inkAnnotation svg polyline,
.annotationLayer .stampAnnotation,
.annotationLayer .fileAttachmentAnnotation {
.annotationLayer .popupTriggerArea {
cursor: pointer;
}

Expand Down Expand Up @@ -2778,6 +2765,8 @@ dialog :link {
.grab-to-pan-grab:active,
.grab-to-pan-grabbing {
cursor: grabbing !important;
}
.grab-to-pan-grabbing {
position: fixed;
background: rgba(0, 0, 0, 0);
display: block;
Expand Down
20 changes: 12 additions & 8 deletions web/viewer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/viewer.js.map

Large diffs are not rendered by default.

0 comments on commit db741f5

Please sign in to comment.