Skip to content

Commit 1c69e1f

Browse files
Update pdf.js
1 parent e30a9d9 commit 1c69e1f

15 files changed

+1776
-270
lines changed

build/pdf.js

Lines changed: 1191 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/pdf.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/pdf.sandbox.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/pdf.sandbox.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/pdf.worker.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
exports["pdfjs-dist/build/pdf.worker"] = factory();
3030
else
3131
root["pdfjs-dist/build/pdf.worker"] = root.pdfjsWorker = factory();
32-
})(this, () => {
32+
})(globalThis, () => {
3333
return /******/ (() => { // webpackBootstrap
3434
/******/ "use strict";
3535
/******/ var __webpack_modules__ = ([
@@ -719,7 +719,7 @@ if (typeof window === "undefined" && !_is_node.isNodeJS && typeof self !== "unde
719719
Object.defineProperty(exports, "__esModule", ({
720720
value: true
721721
}));
722-
exports.VerbosityLevel = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.UNSUPPORTED_FEATURES = exports.TextRenderingMode = exports.StreamType = exports.RenderingIntentFlag = exports.PermissionFlag = exports.PasswordResponses = exports.PasswordException = exports.PageActionEventType = exports.OPS = exports.MissingPDFException = exports.LINE_FACTOR = exports.InvalidPDFException = exports.ImageKind = exports.IDENTITY_MATRIX = exports.FormatError = exports.FontType = exports.FeatureTest = exports.FONT_IDENTITY_MATRIX = exports.DocumentActionEventType = exports.CMapCompressionType = exports.BaseException = exports.AnnotationType = exports.AnnotationStateModelType = exports.AnnotationReviewState = exports.AnnotationReplyType = exports.AnnotationMode = exports.AnnotationMarkedState = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationBorderStyleType = exports.AnnotationActionEventType = exports.AbortException = void 0;
722+
exports.VerbosityLevel = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.UNSUPPORTED_FEATURES = exports.TextRenderingMode = exports.StreamType = exports.RenderingIntentFlag = exports.PermissionFlag = exports.PasswordResponses = exports.PasswordException = exports.PageActionEventType = exports.OPS = exports.MissingPDFException = exports.LINE_FACTOR = exports.InvalidPDFException = exports.ImageKind = exports.IDENTITY_MATRIX = exports.FormatError = exports.FontType = exports.FeatureTest = exports.FONT_IDENTITY_MATRIX = exports.DocumentActionEventType = exports.CMapCompressionType = exports.BaseException = exports.AnnotationType = exports.AnnotationStateModelType = exports.AnnotationReviewState = exports.AnnotationReplyType = exports.AnnotationMode = exports.AnnotationMarkedState = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationEditorType = exports.AnnotationEditorPrefix = exports.AnnotationBorderStyleType = exports.AnnotationActionEventType = exports.AbortException = void 0;
723723
exports.arrayByteLength = arrayByteLength;
724724
exports.arraysToBytes = arraysToBytes;
725725
exports.assert = assert;
@@ -771,6 +771,13 @@ const AnnotationMode = {
771771
ENABLE_STORAGE: 3
772772
};
773773
exports.AnnotationMode = AnnotationMode;
774+
const AnnotationEditorPrefix = "pdfjs_internal_editor_";
775+
exports.AnnotationEditorPrefix = AnnotationEditorPrefix;
776+
const AnnotationEditorType = {
777+
NONE: 0,
778+
FREETEXT: 3
779+
};
780+
exports.AnnotationEditorType = AnnotationEditorType;
774781
const PermissionFlag = {
775782
PRINT: 0x04,
776783
MODIFY_CONTENTS: 0x08,
@@ -74469,7 +74476,7 @@ Object.defineProperty(exports, "WorkerMessageHandler", ({
7446974476
var _worker = __w_pdfjs_require__(1);
7447074477

7447174478
const pdfjsVersion = '2.15.0';
74472-
const pdfjsBuild = '9bdf27e';
74479+
const pdfjsBuild = '9b22483';
7447374480
})();
7447474481

7447574482
/******/ return __webpack_exports__;

build/pdf.worker.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

web/locale/en-US/viewer.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,11 @@ password_cancel=Cancel
249249
printing_not_supported=Warning: Printing is not fully supported by this browser.
250250
printing_not_ready=Warning: The PDF is not fully loaded for printing.
251251
web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts.
252+
253+
# Editor
254+
editor_none.title=Disable Annotation Editing
255+
editor_none_label=Disable Editing
256+
editor_free_text.title=Add FreeText Annotation
257+
editor_free_text_label=FreeText Annotation
258+
259+
freetext_default_content=Enter some text…

web/locale/it/viewer.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ find_next.title = Trova l’occorrenza successiva del testo da cercare
139139
find_next_label = Successivo
140140
find_highlight = Evidenzia
141141
find_match_case_label = Maiuscole/minuscole
142-
find_entire_word_label = Parole intere
143142
find_match_diacritics_label = Segni diacritici
143+
find_entire_word_label = Parole intere
144144
find_reached_top = Raggiunto l’inizio della pagina, continua dalla fine
145145
find_reached_bottom = Raggiunta la fine della pagina, continua dall’inizio
146146
find_match_count = {[ plural(total) ]}

0 commit comments

Comments
 (0)