mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Merge pull request #15981 from Snuffleupagus/cMapPacked-true
[api-minor] Let the `cMapPacked` parameter, in `getDocument`, default to `true`
This commit is contained in:
commit
e848a0e61c
7 changed files with 13 additions and 21 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue