This commit is contained in:
jpmvaz
2026-09-13 20:23:05 +01:00
commit 34900bf069
45 changed files with 4879 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Download PDF.js locally so the app runs without internet access.
set -euo pipefail
DIR="$(cd "$(dirname "$0")/.." && pwd)/public/vendor/pdfjs"
VER="3.11.174"
BASE="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/${VER}"
mkdir -p "$DIR"
curl -fsSL "${BASE}/pdf.min.js" -o "$DIR/pdf.min.js"
curl -fsSL "${BASE}/pdf.worker.min.js" -o "$DIR/pdf.worker.min.js"
echo "PDF.js ${VER} vendored into $DIR"