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

ELEMENTS-1756: update PDF.js to 4.2.67, hide toobar icons & change .m… #946

Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -8370,7 +8370,7 @@ const PDFWorkerUtil = {
{
if (_shared_util_js__WEBPACK_IMPORTED_MODULE_20__.isNodeJS) {
PDFWorkerUtil.isWorkerDisabled = true;
_worker_options_js__WEBPACK_IMPORTED_MODULE_35__.GlobalWorkerOptions.workerSrc ||= "./pdf.worker.mjs";
_worker_options_js__WEBPACK_IMPORTED_MODULE_35__.GlobalWorkerOptions.workerSrc ||= "./pdf.worker.js";
}
PDFWorkerUtil.isSameOrigin = function (baseUrl, otherUrl) {
let base;
Expand Down Expand Up @@ -24826,4 +24826,4 @@ const FontRenderOps = {
/******/ export { __webpack_exports__AbortException as AbortException, __webpack_exports__AnnotationEditorLayer as AnnotationEditorLayer, __webpack_exports__AnnotationEditorParamsType as AnnotationEditorParamsType, __webpack_exports__AnnotationEditorType as AnnotationEditorType, __webpack_exports__AnnotationEditorUIManager as AnnotationEditorUIManager, __webpack_exports__AnnotationLayer as AnnotationLayer, __webpack_exports__AnnotationMode as AnnotationMode, __webpack_exports__CMapCompressionType as CMapCompressionType, __webpack_exports__ColorPicker as ColorPicker, __webpack_exports__DOMSVGFactory as DOMSVGFactory, __webpack_exports__DrawLayer as DrawLayer, __webpack_exports__FeatureTest as FeatureTest, __webpack_exports__GlobalWorkerOptions as GlobalWorkerOptions, __webpack_exports__ImageKind as ImageKind, __webpack_exports__InvalidPDFException as InvalidPDFException, __webpack_exports__MissingPDFException as MissingPDFException, __webpack_exports__OPS as OPS, __webpack_exports__Outliner as Outliner, __webpack_exports__PDFDataRangeTransport as PDFDataRangeTransport, __webpack_exports__PDFDateString as PDFDateString, __webpack_exports__PDFWorker as PDFWorker, __webpack_exports__PasswordResponses as PasswordResponses, __webpack_exports__PermissionFlag as PermissionFlag, __webpack_exports__PixelsPerInch as PixelsPerInch, __webpack_exports__RenderingCancelledException as RenderingCancelledException, __webpack_exports__UnexpectedResponseException as UnexpectedResponseException, __webpack_exports__Util as Util, __webpack_exports__VerbosityLevel as VerbosityLevel, __webpack_exports__XfaLayer as XfaLayer, __webpack_exports__build as build, __webpack_exports__createValidAbsoluteUrl as createValidAbsoluteUrl, __webpack_exports__fetchData as fetchData, __webpack_exports__getDocument as getDocument, __webpack_exports__getFilenameFromUrl as getFilenameFromUrl, __webpack_exports__getPdfFilenameFromUrl as getPdfFilenameFromUrl, __webpack_exports__getXfaPageViewport as getXfaPageViewport, __webpack_exports__isDataScheme as isDataScheme, __webpack_exports__isPdfFile as isPdfFile, __webpack_exports__noContextMenu as noContextMenu, __webpack_exports__normalizeUnicode as normalizeUnicode, __webpack_exports__renderTextLayer as renderTextLayer, __webpack_exports__setLayerDimensions as setLayerDimensions, __webpack_exports__shadow as shadow, __webpack_exports__updateTextLayer as updateTextLayer, __webpack_exports__version as version };
/******/

//# sourceMappingURL=pdf.mjs.map
//# sourceMappingURL=pdf.js.map

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

Original file line number Diff line number Diff line change
Expand Up @@ -61123,4 +61123,4 @@ const pdfjsBuild = "49b388101";
var __webpack_exports__WorkerMessageHandler = __webpack_exports__.WorkerMessageHandler;
export { __webpack_exports__WorkerMessageHandler as WorkerMessageHandler };

//# sourceMappingURL=pdf.worker.mjs.map
//# sourceMappingURL=pdf.worker.js.map
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ class PDFBug {

const link = document.createElement("link");
link.rel = "stylesheet";
link.href = url.replace(/\.mjs$/, ".css");
link.href = url.replace(/\.js$/, ".css");

document.head.append(link);
}
Expand Down
4 changes: 2 additions & 2 deletions ui/viewers/pdfjs/web/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@

<!-- This snippet is used in production (included from viewer.html) -->
<link rel="resource" type="application/l10n" href="locale/locale.json">
<script src="../build/pdf.mjs" type="module"></script>
<script src="../build/pdf.js" type="module"></script>

<link rel="stylesheet" href="viewer.css">

<script src="viewer.mjs" type="module"></script>
<script src="viewer.js" type="module"></script>
</head>

<body tabindex="1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4917,7 +4917,7 @@ var esnext_iterator_constructor = __webpack_require__(8992);
var esnext_iterator_filter = __webpack_require__(4520);
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
var esnext_iterator_for_each = __webpack_require__(3949);
;// CONCATENATED MODULE: ./node_modules/cached-iterable/src/cached_iterable.mjs
;// CONCATENATED MODULE: ./node_modules/cached-iterable/src/cached_iterable.js
class CachedIterable extends Array {
static from(iterable) {
if (iterable instanceof this) {
Expand All @@ -4926,7 +4926,7 @@ class CachedIterable extends Array {
return new this(iterable);
}
}
;// CONCATENATED MODULE: ./node_modules/cached-iterable/src/cached_sync_iterable.mjs
;// CONCATENATED MODULE: ./node_modules/cached-iterable/src/cached_sync_iterable.js


class CachedSyncIterable extends CachedIterable {
Expand Down Expand Up @@ -4962,7 +4962,7 @@ class CachedSyncIterable extends CachedIterable {
return this[this.length - 1];
}
}
;// CONCATENATED MODULE: ./node_modules/cached-iterable/src/cached_async_iterable.mjs
;// CONCATENATED MODULE: ./node_modules/cached-iterable/src/cached_async_iterable.js


class CachedAsyncIterable extends CachedIterable {
Expand Down Expand Up @@ -5000,7 +5000,7 @@ class CachedAsyncIterable extends CachedIterable {
return this[this.length - 1];
}
}
;// CONCATENATED MODULE: ./node_modules/cached-iterable/src/index.mjs
;// CONCATENATED MODULE: ./node_modules/cached-iterable/src/index.js


;// CONCATENATED MODULE: ./node_modules/@fluent/dom/esm/localization.js
Expand Down Expand Up @@ -8385,7 +8385,7 @@ const defaultOptions = {
kind: OptionKind.VIEWER + OptionKind.PREFERENCE
},
debuggerSrc: {
value: "./debugger.mjs",
value: "./debugger.js",
kind: OptionKind.VIEWER
},
defaultZoomDelay: {
Expand Down Expand Up @@ -8565,7 +8565,7 @@ const defaultOptions = {
kind: OptionKind.WORKER
},
workerSrc: {
value: "../build/pdf.worker.mjs",
value: "../build/pdf.worker.js",
kind: OptionKind.WORKER
}
};
Expand All @@ -8575,7 +8575,7 @@ const defaultOptions = {
kind: OptionKind.VIEWER
};
defaultOptions.sandboxBundleSrc = {
value: "../build/pdf.sandbox.mjs",
value: "../build/pdf.sandbox.js",
kind: OptionKind.VIEWER
};
defaultOptions.viewerCssTheme = {
Expand Down Expand Up @@ -19493,4 +19493,4 @@ __webpack_async_result__();
/******/ export { __webpack_exports__PDFViewerApplication as PDFViewerApplication, __webpack_exports__PDFViewerApplicationConstants as PDFViewerApplicationConstants, __webpack_exports__PDFViewerApplicationOptions as PDFViewerApplicationOptions };
/******/

//# sourceMappingURL=viewer.mjs.map
//# sourceMappingURL=viewer.js.map
Loading