Continuing on from this problem here, we found that disabling the font face in the compiled code actually let us use fallback fonts instead of having an error.
Is there a way to set the disableFontFace boolean programatically without having to edit PDFJS code itself?
Which product are you using?
PDJS Web Viewer
PDF.js Express Version
8.7.4
Detailed description of issue
Expected behaviour
We expect fallback fonts to appear, but this only works when disableFontFace is set to true. We tested this by editing PDFJSDocumentType.js from the package.
Does your issue happen with every document, or just one?
Any document with a particular font.
Thank you for reaching out, it looks like we do not have a publicly available API to disable this at the moment.
In the other thread I suggest looking into our sister product WebViewer, which has in house rendering and much more customization over how fonts behave.
Unfortunately the cost to upgrade was astronomically higher and unsustainable for our business. Is there a sales person who may help with upgrading to a similar or more reasonable upgrade pricing path?
Please reach out to our sales team here: Contact Sales | Apryse and explicitly mention you are looking to move from PDFJS Express to WebViewer, we should be able to find a solution that works for you.