From fae980a72d84706eae5b25d64ade416566e36649 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 26 Apr 2026 19:02:08 +0200 Subject: [PATCH] A couple of `internal-viewer` fixes - Bundle the `web/text_layer_builder.css` file correctly, to ensure that textLayer debugging works when the code is *built*. Note how loading https://mozilla.github.io/pdf.js/internal-viewer/web/debugger.html currently logs the following error: `GET https://mozilla.github.io/pdf.js/internal-viewer/text_layer_builder.css [HTTP/2 404 7ms]`. - Import the `MathClamp` helper function from the *built* library, rather than "manually", since that's more correct. --- web/internal/debugger.css | 1 + web/internal/debugger.html | 1 - web/internal/split_view.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/internal/debugger.css b/web/internal/debugger.css index 0a7ae3d60..890ceeaa1 100644 --- a/web/internal/debugger.css +++ b/web/internal/debugger.css @@ -13,6 +13,7 @@ * limitations under the License. */ +@import url(../text_layer_builder.css); @import url(canvas_context_details_view.css); @import url(draw_ops_view.css); @import url(font_view.css); diff --git a/web/internal/debugger.html b/web/internal/debugger.html index f2fa3d19f..59b2dd0e6 100644 --- a/web/internal/debugger.html +++ b/web/internal/debugger.html @@ -20,7 +20,6 @@ limitations under the License. PDF.js — Debugging tools -