Merge pull request #15981 from Snuffleupagus/cMapPacked-true

[api-minor] Let the `cMapPacked` parameter, in `getDocument`, default to `true`
This commit is contained in:
Tim van der Meij 2023-02-04 15:00:26 +01:00 committed by GitHub
commit e848a0e61c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 21 deletions

View file

@ -20,10 +20,7 @@ import { Ref } from "../../src/core/primitives.js";
const TEST_PDFS_PATH = isNodeJS ? "./test/pdfs/" : "../pdfs/";
const CMAP_PARAMS = {
cMapUrl: isNodeJS ? "./external/bcmaps/" : "../../external/bcmaps/",
cMapPacked: true,
};
const CMAP_URL = isNodeJS ? "./external/bcmaps/" : "../../external/bcmaps/";
const STANDARD_FONT_DATA_URL = isNodeJS
? "./external/standard_fonts/"
@ -145,7 +142,7 @@ function createIdFactory(pageIndex) {
export {
buildGetDocumentParams,
CMAP_PARAMS,
CMAP_URL,
createIdFactory,
DefaultFileReaderFactory,
STANDARD_FONT_DATA_URL,