Hi,
Im trying to use the demo version of this components and seems all ok.
-The frame shows up the dummy pdf is showing up.
But with a specific type of pdf for example Type Text PDF where you can select text etc when i open in the browser is 100% visible and ok, but using this component the text that is invisible (The text is there and we can select the text, inspect via dev tools etc... but is not visible only if we change the color of the css but even with this pdf doesent look good).
PS:
If i change the PDF format for Image Type PDF it works fine.
Best Regards,
FF
Hi @Francisco Franco .
I think I once had the same issue on my project.
When opening the PDF file in question, try looking through DevTool of your browser.There might be some error that says PDF.js couldn't find file (.bcmap).
Those files are included in pdfJS Viewer Forge asset, and used for displaying specific sort of fonts in your PDF file.
When PDF.js couldn't find required file, the texts in PDF goes invisible.
If that's the case, you'll have to clone the forge asset and manually add required file in module's resource folder.Those files are usually distributed on the Internet.
You may have to modify library's javascript to designate added file in order to load that file.(In my case, I had to do that.)
To summarize:1. Check DevTool when opening PDF file in question, see if there's any errors.2. If there's an error that says some files (e.g. .bcmap) are not found, try find that file on the Internet (of course be sure to get it from trusted source)3. Clone the asset and add that file in library (+modify script to load file if necessary)
If you can share the specific PDF file that the font goes invisible, I might be able to help identify the problem.Hope this helps you. Let me know if there's anything unclear.