Skip to content

Commit

Permalink
Update pdf.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Oct 10, 2021
1 parent fdee2be commit f2c4cbe
Show file tree
Hide file tree
Showing 10 changed files with 126 additions and 86 deletions.
110 changes: 59 additions & 51 deletions build/pdf.js

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

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.

18 changes: 14 additions & 4 deletions build/pdf.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21548,6 +21548,8 @@ var _image_utils = __w_pdfjs_require__(58);

var _stream = __w_pdfjs_require__(10);

var _base_stream = __w_pdfjs_require__(6);

var _bidi = __w_pdfjs_require__(59);

var _colorspace = __w_pdfjs_require__(24);
Expand Down Expand Up @@ -24293,7 +24295,7 @@ class PartialEvaluator {

const cidToGidMap = dict.get("CIDToGIDMap");

if ((0, _primitives.isStream)(cidToGidMap)) {
if (cidToGidMap instanceof _base_stream.BaseStream) {
cidToGidBytes = cidToGidMap.getBytes();
}
}
Expand Down Expand Up @@ -24893,6 +24895,16 @@ class PartialEvaluator {

hash.update(widthsBuf.join());
}

const cidToGidMap = dict.getRaw("CIDToGIDMap") || baseDict.getRaw("CIDToGIDMap");

if (cidToGidMap instanceof _primitives.Name) {
hash.update(cidToGidMap.name);
} else if (cidToGidMap instanceof _primitives.Ref) {
hash.update(cidToGidMap.toString());
} else if (cidToGidMap instanceof _base_stream.BaseStream) {
hash.update(cidToGidMap.peekBytes());
}
}
}

Expand Down Expand Up @@ -27901,8 +27913,6 @@ class Lexer {

if (strBuf.length > 127) {
(0, _util.warn)(`Name token is longer than allowed by the spec: ${strBuf.length}`);
} else if (strBuf.length === 0) {
(0, _util.warn)("Name token is empty.");
}

return _primitives.Name.get(strBuf.join(""));
Expand Down Expand Up @@ -72925,7 +72935,7 @@ Object.defineProperty(exports, "WorkerMessageHandler", ({
var _worker = __w_pdfjs_require__(1);

const pdfjsVersion = '2.12.0';
const pdfjsBuild = 'a474d6c';
const pdfjsBuild = '56e3ef6';
})();

/******/ return __webpack_exports__;
Expand Down
2 changes: 1 addition & 1 deletion build/pdf.worker.js.map

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions web/locale/ja/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 @@ -153,9 +148,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 +222,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
3 changes: 3 additions & 0 deletions web/locale/locale.properties
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@
[ru]
@import url(ru/viewer.properties)

[sat]
@import url(sat/viewer.properties)

[scn]
@import url(scn/viewer.properties)

Expand Down
50 changes: 35 additions & 15 deletions web/locale/sat/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ bookmark_label=नितोगाक् ञेंल
# Secondary toolbar and context menu




# Document properties dialog box
document_properties_file_name=रेत् ञुतुम:
document_properties_file_size=रेत् माराङ तेत्:
# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"
# will be replaced by the PDF file size in kilobytes, respectively in bytes.
document_properties_kb={{माराङ तेत्_kb}} KB ({{माराङ तेत्_b}} बाइट्स)
document_properties_kb={{size_kb}} KB ({{size_b}} बाइट्स)
# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"
# will be replaced by the PDF file size in megabytes, respectively in bytes.
document_properties_mb={{माराङ तेत्_mb}} MB ({{माराङ तेत्_b}} बाइट्स)
document_properties_mb={{size_mb}} MB ({{size_b}} बाइट्स)
document_properties_title=एम ञुतुम:
document_properties_author=ओनोलिया़:
document_properties_subject=बिसोय:
Expand All @@ -51,11 +53,19 @@ document_properties_creation_date=तेयार मा़हित्:
document_properties_modification_date=बोदोल होचो मा़हित्:
# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"
# will be replaced by the creation/modification date, and time, of the PDF file.
document_properties_date_string={{मा़हित्}}, {{ओकतो}}
document_properties_date_string={{date}}, {{time}}
document_properties_creator=बेनाविच्:
document_properties_producer=PDF तेयार ओडोकिच्:
document_properties_version=PDF बार्सान:
document_properties_page_count=साहटा लेखा:
# 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.
# 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.
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
# the document; usually called "Fast Web View" in English locales of Adobe software.

# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
# a numerical per cent value.
Expand All @@ -64,19 +74,20 @@ document_properties_page_count=साहटा लेखा:
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
document_outline_label=दोलिल तेयार तेत्
attachments.title=लाठा सेलेद को उदुक् मे
attachments_label=लाठा सेलेद को
attachments.title=ᱞᱟᱴᱷᱟ ᱥᱮᱞᱮᱫ ᱠᱚ ᱩᱫᱩᱜᱽ ᱢᱮ
attachments_label=ᱞᱟᱴᱷᱟ ᱥᱮᱞᱮᱫ ᱠᱚ
thumbs.title=चिता़र आहला को उदुगा मे
thumbs_label=चिता़र आहला को
findbar.title=दोलिल रे ञाम

# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
thumb_page_title=साहटा {{साहटा}}
thumb_page_title=साहटा {{page}}
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
# number.
thumb_page_canvas=साहटा रेयाक् चिता़र आहला {{साहटा}}
thumb_page_canvas=साहटा रेयाक् चिता़र आहला {{page}}

# Find panel button title and messages
find_previous.title=आयात् हिंस रेयाक् पा़हिल सेदाक् ओडोक् ञाम मे
Expand All @@ -85,24 +96,32 @@ find_highlight=जोतो उदुक् राकाब
find_match_case_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.
# 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=आयात् हिंस बाय ञाम लेना

# Error panel labels
error_more_info=बाड़ती ला़य सोदोरढेर ला़य सोदोर
error_less_info=कोम ला़य सोदोर
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
# replaced by the PDF.JS version and build ID.
error_version_info=PDF.js v{{बार्सान}} (तेयार: {{तेयार}})
error_version_info=PDF.js v{{version}} (तेयार: {{build}})
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
# english string describing the error.
error_message=खोबोर: {{खोबोर}}
error_message=खोबोर: {{message}}
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
# trace.
error_stack=डांग: {{डांग}}
error_stack=डांग: {{stack}}
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
error_file=रेत्: {{रेत्}}
error_file=रेत्: {{file}}
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
error_line=गार: {{गार}}
error_line=गार: {{line}}
rendering_error=साहटा एम जोहोक मित् भुल हुय एना .

# Predefined zoom values
Expand All @@ -114,21 +133,22 @@ page_scale_actual=ठिक माराङ तेत्
# numerical scale value.

# Loading indicator messages
loading_error_indicator=भुल
loading_error=\u0020PDFलादे जोहोक् मित् भुल हुय एना.
invalid_file_error=बाङ बाताव आर बाङ PDF रेत्.
missing_file_error=आदाक् PDF रेत्.

# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
# replaced by the modification date, and time, of the annotation.

# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
# "{{type}}" will be replaced with an annotation type from a list defined in
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
text_annotation_type.alt=[{{लेकान}} बेयान एम]
text_annotation_type.alt=[{{type}} बेयान एम]
password_label=नोवा PDF रेत् झिज ला़गित् दानाङ साबाद आदेर मे.
password_invalid=बाङ बातावाक् दानाङ साबाद. दोहड़ा कुरुमुटुय मे.
password_ok=OK

printing_not_supported=होसियार: छापा नोवा पानतेयाक् दाराय ते पुरा़व बाय गोड़ोवाकाना .
printing_not_ready=होंसिया़र: छापा ला़गित् PDF पुरा़ बाय लादे आकाना.
web_fonts_disabled=वेब फॉन्ट बाङ हुय होचो आकाना: भितिर थापोन PDF फॉन्ट्स बेभार बाङ हुय केया.
document_colors_not_allowed=PDF दोलिल को आजाक् निजे रोङ बेभार बाताव बाय एमागाक् आ: 'आजाक् निजे रोङ को बाछाव ला़गित् बाताव एम साहटा कोदो ब्राउजार रे बाय चोगोड़ होचोवा.
Loading

0 comments on commit f2c4cbe

Please sign in to comment.