The word "bcmap" means "binary cmap".
CMaps (Character Maps) are text files used by PostScript and other Adobe products to map character codes to character characters in CID fonts.
See this Adobe document for what CID fonts are suitable for. They are mainly used when working with East Asian writing systems. (This technology is an inherited technology, therefore it cannot be used in pdf files created by modern tools).
pdfjs requires a CMap file when it wants to display such CID fonts. For this you need to provide CMaps.
You specify the URL in the folder where the CMaps are stored using the settings of the global PDFJS object.
PDFJS.cMapUrl = '../web/cmaps/';
By default, pdfjs will try to download a file with the name of the required CMap and without the extension, for example, "../web/cmaps/Hankaku".
If you enable the cMapPacked setting as follows:
PDFJS.cMapPacked = true;
pdfjs will instead try to read a compressed version of the CMap file with the extension ".bcmap", for example, "../web/cmaps/Hankaku.bcmap".
Compression is done using the tool https://github.com/mozilla/pdf.js/tree/master/external/cmapscompress .
Conclusion Include files and set PDFJS parameters correctly if there is a possibility that you need to display pdf files with East Asian texts that were created by outdated tools for creating PDF files. Do not include files if you are sure that you will not need to display such files.
Nineberry
source share