Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ coverage/
ts3.4/
build/
dist/
cjs/
es/
.idea/

tsBuildInfo.json
flamegraph.html
Expand All @@ -15,4 +17,4 @@ isolate*.log
out.pdf
*.tgz

.vscode/settings.json
.vscode/settings.json
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1502,3 +1502,8 @@ See this [StackOverflow answer](https://stackoverflow.com/a/48268766) for a grea
## License

[MIT](LICENSE.md)

## Forks

https://github.com/Hopding/pdf-lib -> original fork
https://github.com/ParadoxAi/pdf-lib -> sync with this fork with latest deps patch 2025-10-07
2 changes: 1 addition & 1 deletion cjs/utils/arrays.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export declare const reverseArray: (array: Uint8Array) => Uint8Array;
export declare const sum: (array: number[] | Uint8Array) => number;
export declare const range: (start: number, end: number) => number[];
export declare const pluckIndices: <T>(arr: T[], indices: number[]) => T[];
export declare const canBeConvertedToUint8Array: (input: any) => input is string | Uint8Array | ArrayBuffer;
export declare const canBeConvertedToUint8Array: (input: any) => input is string | ArrayBuffer | Uint8Array;
export declare const toUint8Array: (input: string | ArrayBuffer | Uint8Array) => Uint8Array;
//# sourceMappingURL=arrays.d.ts.map
46 changes: 20 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,7 @@
"build:downlevel-dts": "rimraf ts3.4 && yarn downlevel-dts . ts3.4 && rimraf ts3.4/scratchpad",
"scratchpad:start": "ttsc --build scratchpad/tsconfig.json --watch",
"scratchpad:run": "node scratchpad/build/scratchpad/index.js",
"scratchpad:flame": "rimraf isolate*.log && node --prof scratchpad/build/scratchpad/index.js && node --prof-process --preprocess -j isolate*.log | flamebearer",
"apps:node": "ttsc --build apps/node/tsconfig.json && node apps/node-build/index.js",
"apps:deno": "deno run --allow-read --allow-write --allow-run apps/deno/index.ts",
"apps:web": "http-server -c-1 .",
"apps:web:mac": "bash -c 'sleep 1 && open http://localhost:8080/apps/web/test1.html' & yarn apps:web",
"apps:rn:ios": "cd apps/rn && yarn add ./../.. --force && react-native run-ios",
"apps:rn:android": "yarn apps:rn:emulator & cd apps/rn && yarn add ./../.. --force && react-native run-android",
"apps:rn:emulator": "emulator -avd \"$(emulator -list-avds | head -n 1)\" & bash -c 'sleep 5 && adb reverse tcp:8080 tcp:8080 && adb reverse tcp:8081 tcp:8081'"
"scratchpad:flame": "rimraf isolate*.log && node --prof scratchpad/build/scratchpad/index.js && node --prof-process --preprocess -j isolate*.log | flamebearer"
},
"main": "cjs/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -95,34 +88,31 @@
},
"devDependencies": {
"@pdf-lib/fontkit": "^1.1.0",
"@rollup/plugin-commonjs": "^13.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^8.0.1",
"@types/jest": "^26.0.0",
"@types/node-fetch": "^2.5.7",
"@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^14.1.0",
"@types/node-fetch": "^2.6.13",
"@types/pako": "^1.0.1",
"@zerollup/ts-transform-paths": "^1.7.18",
"downlevel-dts": "^0.5.0",
"downlevel-dts": "^0.11.0",
"flamebearer": "^1.1.3",
"http-server": "^0.12.3",
"jest": "^26.0.1",
"node-fetch": "^2.6.0",
"prettier": "^2.0.5",
"node-fetch": "^2.6.7",
"prettier": "^2.8.8",
"rimraf": "^3.0.2",
"rollup": "^2.17.1",
"rollup": "2.79.2",
"rollup-plugin-terser": "^6.1.0",
"ts-jest": "^26.1.0",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0",
"ttypescript": "^1.5.10",
"ttypescript": "^1.5.15",
"typescript": "^3.9.5"
},
"license": "MIT",
"private": false,
"homepage": "https://pdf-lib.js.org",
"repository": "git+https://github.com/Hopding/pdf-lib.git",
"repository": {
"type": "git",
"url": "git+https://github.com/mattrglobal/pdf-lib"
},
"bugs": {
"url": "https://github.com/Hopding/pdf-lib/issues"
"url": "https://github.com/mattrglobal/pdf-lib/issues"
},
"keywords": [
"pdf-lib",
Expand All @@ -137,5 +127,9 @@
"typescript",
"javascript",
"library"
]
],
"directories": {
"doc": "docs",
"test": "tests"
}
}
Loading