Upgrade PDF.js to v5 (#24646)

GitOrigin-RevId: 3ef46af6363aab5b5b007b6c9d72decae65a36ab
This commit is contained in:
Alf Eaton
2025-04-17 08:04:59 +00:00
committed by Copybot
parent a1a3019d1e
commit a1098a921c
8 changed files with 109 additions and 71 deletions
+11 -1
View File
@@ -380,12 +380,22 @@ module.exports = {
context: `${dictionariesDir}/dictionaries`,
},
// Copy CMap files (used to provide support for non-Latin characters),
// fonts and images from pdfjs-dist package to build output.
// wasm, ICC profiles, fonts and images from pdfjs-dist package to build output.
{
from: 'cmaps',
to: 'js/pdfjs-dist/cmaps',
context: pdfjsDir,
},
{
from: 'iccs',
to: 'js/pdfjs-dist/iccs',
context: pdfjsDir,
},
{
from: 'wasm',
to: 'js/pdfjs-dist/wasm',
context: pdfjsDir,
},
{
from: 'standard_fonts',
to: 'fonts/pdfjs-dist',