From 5c8322437c2d238a82d974e00e35350ae455c135 Mon Sep 17 00:00:00 2001 From: Conrad Chan Date: Thu, 29 Jul 2021 13:57:08 -0700 Subject: [PATCH] docs(pdfjs): Adding comment to upgrade script (#1415) --- build/upgrade_pdfjs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/upgrade_pdfjs.sh b/build/upgrade_pdfjs.sh index cabb59b0a..beb074ba7 100755 --- a/build/upgrade_pdfjs.sh +++ b/build/upgrade_pdfjs.sh @@ -51,6 +51,11 @@ echo "Enabling e-signature rendering without validation..." echo "-----------------------------------------------------------------------------------" sed -e 's@;r.setFlags(o.AnnotationFlag.HIDDEN)@@' -i '' ${DOC_STATIC_ASSETS_PATH}/pdf.worker.min.js +# Fix for Courier font PDF not rendering applied to src/third-party/doc/2.76.0/pdf.worker*.js which is PDFJS v2.2.228 +# Link to issue: https://github.com/mozilla/pdf.js/issues/13771 +# This fix may not need to be applied if next upgrade is >= 2.5.x +# See https://github.com/box/box-content-preview/pull/1414 for more details + # Minify using Google Closure Compiler, options: # Output to ES5 (Box supports Chrome, Edge, IE11, Firefox, Safari, and newer versions of iOS, Android) # Do not minify pdf.js or pdf.worker.js, as the closure compiler will mangle function names and cause bugs