{"_id":"pdf-lib-incremental-save","_rev":"4-bad4846495898ab9bd007186495d5721","time":{"created":"2023-05-29T12:43:41.653Z","1.17.1":"2023-05-28T11:46:02.287Z","modified":"2024-01-29T13:43:11.996Z","1.17.2":"2023-05-29T12:43:41.977Z","1.17.3":"2023-11-05T11:34:26.521Z","1.17.4":"2024-01-29T13:43:11.850Z"},"name":"pdf-lib-incremental-save","dist-tags":{"latest":"1.17.4"},"versions":{"1.17.2":{"name":"pdf-lib-incremental-save","version":"1.17.2","description":"add incremental save functionality to pdf-lib.","author":{"name":"Remus DRAICA","email":"remus.draica@gmail.com"},"contributors":[{"name":"jerp","url":"https://github.com/jerp"},{"name":"Greg Bacchus","url":"https://github.com/gregbacchus"},{"name":"Mickael Lecoq","url":"https://github.com/mlecoq"},{"name":"Philip Murphy","url":"https://github.com/philipjmurphy"},{"name":"Dmitry Kozliuk","url":"https://github.com/PlushBeaver"},{"name":"Said Amezyane","url":"https://github.com/samezyane"},{"name":"Georges Gabereau","url":"https://github.com/multiplegeorges"},{"name":"Gerard Smit","url":"https://github.com/GerardSmit"},{"name":"jlmessenger","url":"https://github.com/jlmessenger"},{"name":"thebenlamm","url":"https://github.com/thebenlamm"},{"name":"cshenks","url":"https://github.com/cshenks"},{"name":"James Woodrow","url":"https://github.com/jwoodrow"},{"name":"Guillaume Grossetie","url":"https://github.com/Mogztter"},{"name":"Philipp Tessenow","url":"https://github.com/tessi"},{"name":"Tim Kräuter","url":"https://github.com/timKraeuter"},{"name":"Richard Bateman","url":"https://github.com/taxilian"},{"name":"Sebastian Martinez","url":"https://github.com/sebastinez"},{"name":"soadzoor","url":"https://github.com/soadzoor"},{"name":"Slobodan Babic","url":"https://github.com/bockoblur"},{"name":"Zach Toben","url":"https://github.com/ztoben"},{"name":"Zack Sheppard","url":"https://github.com/zackdotcomputer"},{"name":"DkDavid","url":"https://github.com/DkDavid"},{"name":"Bj Tecu","url":"https://github.com/btecu"},{"name":"Brent McSharry","url":"https://github.com/mcshaz"},{"name":"Tim Knapp","url":"https://github.com/duffyd"},{"name":"Ching Chang","url":"https://github.com/ChingChang9"},{"name":"Remus DRAICA","url":"https://github.com/remdra"}],"scripts":{"release:latest":"yarn publish --tag latest && yarn pack && yarn release:tag","release:next":"yarn publish --tag next","release:prep":"yarn clean && yarn lint && yarn typecheck && yarn test && yarn build","release:tag":"TAG=\"v$(yarn --silent get:version)\" && git tag $TAG && git push origin $TAG","get:version":"node --eval 'console.log(require(`./package.json`).version)'","clean":"rimraf ts3.4 build cjs dist es scratchpad/build coverage tsBuildInfo.json apps/node-build apps/node/tsBuildInfo.json isolate*.log flamegraph.html out.pdf","typecheck":"tsc --noEmit --incremental false --tsBuildInfoFile null","test":"jest --config jest.json --runInBand","testw":"jest --config jest.json --watch","testc":"jest --config jest.json --coverage && open coverage/index.html","lint":"yarn lint:prettier && yarn lint:tslint:src && yarn lint:tslint:tests","lint:tslint:src":"tslint --project tsconfig.json --fix","lint:tslint:tests":"tslint --project tests/tsconfig.json --fix","lint:prettier":"prettier --write \"./{src,tests,apps}/**/*.{ts,js,json,html,css}\" --loglevel error","build":"yarn build:cjs && yarn build:es && yarn build:esm && yarn build:esm:min && yarn build:umd && yarn build:umd:min && yarn build:downlevel-dts","build:cjs":"ttsc --module commonjs --outDir cjs","build:es":"ttsc --module ES2015 --outDir es","build:esm":"rollup --config rollup.config.js --file dist/pdf-lib.esm.js --environment MODULE_TYPE:es","build:esm:min":"rollup --config rollup.config.js --file dist/pdf-lib.esm.min.js --environment MINIFY,MODULE_TYPE:es","build:umd":"rollup --config rollup.config.js --file dist/pdf-lib.js --environment MODULE_TYPE:umd","build:umd:min":"rollup --config rollup.config.js --file dist/pdf-lib.min.js --environment MINIFY,MODULE_TYPE:umd","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'"},"main":"cjs/index.js","module":"es/index.js","unpkg":"dist/pdf-lib.min.js","types":"cjs/index.d.ts","typesVersions":{"<=3.5":{"*":["ts3.4/*"]}},"dependencies":{"@pdf-lib/standard-fonts":"^1.0.0","@pdf-lib/upng":"^1.0.1","pako":"^1.0.11","tslib":"^1.11.1"},"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","@types/pako":"^1.0.1","@zerollup/ts-transform-paths":"^1.7.18","downlevel-dts":"^0.5.0","flamebearer":"^1.1.3","http-server":"^0.12.3","jest":"^26.0.1","node-fetch":"^2.6.0","prettier":"^2.0.5","rimraf":"^3.0.2","rollup":"^2.17.1","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","typescript":"^3.9.5"},"license":"MIT","private":false,"homepage":"https://github.com/remdra/pdf-lib-incremental-save#readme","repository":{"type":"git","url":"git+https://github.com/remdra/pdf-lib-incremental-save.git"},"keywords":["pdf-lib","pdf","document","create","modify","creation","modification","edit","editing","typescript","javascript","library","incremental"],"gitHead":"528fac42bbfe9ab36760719a6931541f9aedb1ca","bugs":{"url":"https://github.com/remdra/pdf-lib-incremental-save/issues"},"_id":"pdf-lib-incremental-save@1.17.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-1T7TDQNj3TYNS+ESH4xK7e78UFXuYADHNimei2xsStirlySPDpea0AdOaGTmWjJi4SlFqvO3tHmjINTfg3YhhA==","shasum":"f6b730eb5e357f5fac83a2e543d591556436a167","tarball":"https://registry.npmjs.org/pdf-lib-incremental-save/-/pdf-lib-incremental-save-1.17.2.tgz","fileCount":1586,"unpackedSize":19519596,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgFj5xe83DSytH+/cwaEasM4WjUr4RP9jZoYVg5TUp5AiEA7p2SWfj8HdPMYzazj5qjzs3VWTasN7ntHnK1F4hC7T4="}]},"_npmUser":{"name":"remdra","email":"remus.draica@gmail.com"},"directories":{},"maintainers":[{"name":"remdra","email":"remus.draica@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pdf-lib-incremental-save_1.17.2_1685364221653_0.4050882110177034"},"_hasShrinkwrap":false},"1.17.3":{"name":"pdf-lib-incremental-save","version":"1.17.3","description":"add incremental save functionality to pdf-lib.","author":{"name":"Remus DRAICA","email":"remus.draica@gmail.com"},"contributors":[{"name":"jerp","url":"https://github.com/jerp"},{"name":"Greg Bacchus","url":"https://github.com/gregbacchus"},{"name":"Mickael Lecoq","url":"https://github.com/mlecoq"},{"name":"Philip Murphy","url":"https://github.com/philipjmurphy"},{"name":"Dmitry Kozliuk","url":"https://github.com/PlushBeaver"},{"name":"Said Amezyane","url":"https://github.com/samezyane"},{"name":"Georges Gabereau","url":"https://github.com/multiplegeorges"},{"name":"Gerard Smit","url":"https://github.com/GerardSmit"},{"name":"jlmessenger","url":"https://github.com/jlmessenger"},{"name":"thebenlamm","url":"https://github.com/thebenlamm"},{"name":"cshenks","url":"https://github.com/cshenks"},{"name":"James Woodrow","url":"https://github.com/jwoodrow"},{"name":"Guillaume Grossetie","url":"https://github.com/Mogztter"},{"name":"Philipp Tessenow","url":"https://github.com/tessi"},{"name":"Tim Kräuter","url":"https://github.com/timKraeuter"},{"name":"Richard Bateman","url":"https://github.com/taxilian"},{"name":"Sebastian Martinez","url":"https://github.com/sebastinez"},{"name":"soadzoor","url":"https://github.com/soadzoor"},{"name":"Slobodan Babic","url":"https://github.com/bockoblur"},{"name":"Zach Toben","url":"https://github.com/ztoben"},{"name":"Zack Sheppard","url":"https://github.com/zackdotcomputer"},{"name":"DkDavid","url":"https://github.com/DkDavid"},{"name":"Bj Tecu","url":"https://github.com/btecu"},{"name":"Brent McSharry","url":"https://github.com/mcshaz"},{"name":"Tim Knapp","url":"https://github.com/duffyd"},{"name":"Ching Chang","url":"https://github.com/ChingChang9"},{"name":"Remus DRAICA","url":"https://github.com/remdra"}],"scripts":{"release:latest":"yarn publish --tag latest && yarn pack && yarn release:tag","release:next":"yarn publish --tag next","release:prep":"yarn clean && yarn lint && yarn typecheck && yarn test && yarn build","release:tag":"TAG=\"v$(yarn --silent get:version)\" && git tag $TAG && git push origin $TAG","get:version":"node --eval 'console.log(require(`./package.json`).version)'","clean":"rimraf ts3.4 build cjs dist es scratchpad/build coverage tsBuildInfo.json apps/node-build apps/node/tsBuildInfo.json isolate*.log flamegraph.html out.pdf","typecheck":"tsc --noEmit --incremental false --tsBuildInfoFile null","test":"jest --config jest.json --runInBand","testw":"jest --config jest.json --watch","testc":"jest --config jest.json --coverage && open coverage/index.html","lint":"yarn lint:prettier && yarn lint:tslint:src && yarn lint:tslint:tests","lint:tslint:src":"tslint --project tsconfig.json --fix","lint:tslint:tests":"tslint --project tests/tsconfig.json --fix","lint:prettier":"prettier --write \"./{src,tests,apps}/**/*.{ts,js,json,html,css}\" --loglevel error","build":"yarn build:cjs && yarn build:es && yarn build:esm && yarn build:esm:min && yarn build:umd && yarn build:umd:min && yarn build:downlevel-dts","build:cjs":"ttsc --module commonjs --outDir cjs","build:es":"ttsc --module ES2015 --outDir es","build:esm":"rollup --config rollup.config.js --file dist/pdf-lib.esm.js --environment MODULE_TYPE:es","build:esm:min":"rollup --config rollup.config.js --file dist/pdf-lib.esm.min.js --environment MINIFY,MODULE_TYPE:es","build:umd":"rollup --config rollup.config.js --file dist/pdf-lib.js --environment MODULE_TYPE:umd","build:umd:min":"rollup --config rollup.config.js --file dist/pdf-lib.min.js --environment MINIFY,MODULE_TYPE:umd","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'"},"main":"cjs/index.js","module":"es/index.js","unpkg":"dist/pdf-lib.min.js","types":"cjs/index.d.ts","typesVersions":{"<=3.5":{"*":["ts3.4/*"]}},"dependencies":{"@pdf-lib/standard-fonts":"^1.0.0","@pdf-lib/upng":"^1.0.1","pako":"^1.0.11","tslib":"^1.11.1"},"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","@types/pako":"^1.0.1","@zerollup/ts-transform-paths":"^1.7.18","downlevel-dts":"^0.5.0","flamebearer":"^1.1.3","http-server":"^0.12.3","jest":"^26.0.1","node-fetch":"^2.6.0","prettier":"^2.0.5","rimraf":"^3.0.2","rollup":"^2.17.1","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","typescript":"^3.9.5"},"license":"MIT","private":false,"homepage":"https://github.com/remdra/pdf-lib-incremental-save#readme","repository":{"type":"git","url":"git+https://github.com/remdra/pdf-lib-incremental-save.git"},"keywords":["pdf-lib","pdf","document","create","modify","creation","modification","edit","editing","typescript","javascript","library","incremental"],"gitHead":"3a073eb6a45001b2fa6a119976925b35db776b0b","bugs":{"url":"https://github.com/remdra/pdf-lib-incremental-save/issues"},"_id":"pdf-lib-incremental-save@1.17.3","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-YTxITmmsywI2/Ag3OxkkbaoQzeYbNs2XnSXud4wjzo6l+b9S1cj8xZ+AJUwvl4vTHPvd2C9sramQel+7MI403Q==","shasum":"7908c7ba7b92fae547771550f9c40de19c84fece","tarball":"https://registry.npmjs.org/pdf-lib-incremental-save/-/pdf-lib-incremental-save-1.17.3.tgz","fileCount":1586,"unpackedSize":19532352,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClaxIePX2F0itjKZXZSODrajX44pxXq9+xwn9ywoeUhwIhAImNuK9Zb5PWIUZstmFQF1NSUX0W8hSlF1vsqMrC/iRg"}]},"_npmUser":{"name":"remdra","email":"remus.draica@gmail.com"},"directories":{},"maintainers":[{"name":"remdra","email":"remus.draica@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pdf-lib-incremental-save_1.17.3_1699184066181_0.12159235897376619"},"_hasShrinkwrap":false},"1.17.4":{"name":"pdf-lib-incremental-save","version":"1.17.4","description":"Add incremental save functionality to pdf-lib.","author":{"name":"Remus DRAICA","email":"remus.draica@gmail.com"},"contributors":[{"name":"jerp","url":"https://github.com/jerp"},{"name":"Greg Bacchus","url":"https://github.com/gregbacchus"},{"name":"Mickael Lecoq","url":"https://github.com/mlecoq"},{"name":"Philip Murphy","url":"https://github.com/philipjmurphy"},{"name":"Dmitry Kozliuk","url":"https://github.com/PlushBeaver"},{"name":"Said Amezyane","url":"https://github.com/samezyane"},{"name":"Georges Gabereau","url":"https://github.com/multiplegeorges"},{"name":"Gerard Smit","url":"https://github.com/GerardSmit"},{"name":"jlmessenger","url":"https://github.com/jlmessenger"},{"name":"thebenlamm","url":"https://github.com/thebenlamm"},{"name":"cshenks","url":"https://github.com/cshenks"},{"name":"James Woodrow","url":"https://github.com/jwoodrow"},{"name":"Guillaume Grossetie","url":"https://github.com/Mogztter"},{"name":"Philipp Tessenow","url":"https://github.com/tessi"},{"name":"Tim Kräuter","url":"https://github.com/timKraeuter"},{"name":"Richard Bateman","url":"https://github.com/taxilian"},{"name":"Sebastian Martinez","url":"https://github.com/sebastinez"},{"name":"soadzoor","url":"https://github.com/soadzoor"},{"name":"Slobodan Babic","url":"https://github.com/bockoblur"},{"name":"Zach Toben","url":"https://github.com/ztoben"},{"name":"Zack Sheppard","url":"https://github.com/zackdotcomputer"},{"name":"DkDavid","url":"https://github.com/DkDavid"},{"name":"Bj Tecu","url":"https://github.com/btecu"},{"name":"Brent McSharry","url":"https://github.com/mcshaz"},{"name":"Tim Knapp","url":"https://github.com/duffyd"},{"name":"Ching Chang","url":"https://github.com/ChingChang9"},{"name":"Remus DRAICA","url":"https://github.com/remdra"}],"scripts":{"release:latest":"yarn publish --tag latest && yarn pack && yarn release:tag","release:next":"yarn publish --tag next","release:prep":"yarn clean && yarn lint && yarn typecheck && yarn test && yarn build","release:tag":"TAG=\"v$(yarn --silent get:version)\" && git tag $TAG && git push origin $TAG","get:version":"node --eval 'console.log(require(`./package.json`).version)'","clean":"rimraf ts3.4 build cjs dist es scratchpad/build coverage tsBuildInfo.json apps/node-build apps/node/tsBuildInfo.json isolate*.log flamegraph.html out.pdf","typecheck":"tsc --noEmit --incremental false --tsBuildInfoFile null","test":"jest --config jest.json --runInBand","testw":"jest --config jest.json --watch","testc":"jest --config jest.json --coverage && open coverage/index.html","lint":"yarn lint:prettier && yarn lint:tslint:src && yarn lint:tslint:tests","lint:tslint:src":"tslint --project tsconfig.json --fix","lint:tslint:tests":"tslint --project tests/tsconfig.json --fix","lint:prettier":"prettier --write \"./{src,tests,apps}/**/*.{ts,js,json,html,css}\" --loglevel error","build":"yarn build:cjs && yarn build:es && yarn build:esm && yarn build:esm:min && yarn build:umd && yarn build:umd:min && yarn build:downlevel-dts","build:cjs":"ttsc --module commonjs --outDir cjs","build:es":"ttsc --module ES2015 --outDir es","build:esm":"rollup --config rollup.config.js --file dist/pdf-lib.esm.js --environment MODULE_TYPE:es","build:esm:min":"rollup --config rollup.config.js --file dist/pdf-lib.esm.min.js --environment MINIFY,MODULE_TYPE:es","build:umd":"rollup --config rollup.config.js --file dist/pdf-lib.js --environment MODULE_TYPE:umd","build:umd:min":"rollup --config rollup.config.js --file dist/pdf-lib.min.js --environment MINIFY,MODULE_TYPE:umd","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'"},"main":"cjs/index.js","module":"es/index.js","unpkg":"dist/pdf-lib.min.js","types":"cjs/index.d.ts","typesVersions":{"<=3.5":{"*":["ts3.4/*"]}},"dependencies":{"@pdf-lib/standard-fonts":"^1.0.0","@pdf-lib/upng":"^1.0.1","pako":"^1.0.11","tslib":"^1.11.1"},"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","@types/pako":"^1.0.1","@zerollup/ts-transform-paths":"^1.7.18","downlevel-dts":"^0.5.0","flamebearer":"^1.1.3","http-server":"^0.12.3","jest":"^26.0.1","node-fetch":"^2.6.0","prettier":"^2.0.5","rimraf":"^3.0.2","rollup":"^2.17.1","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","typescript":"^3.9.5"},"license":"MIT","private":false,"homepage":"https://github.com/remdra/pdf-lib-incremental-save#readme","repository":{"type":"git","url":"git+https://github.com/remdra/pdf-lib-incremental-save.git"},"keywords":["pdf-lib","pdf","document","create","modify","creation","modification","edit","editing","typescript","javascript","library","incremental"],"gitHead":"9a1dc4174e0efe31039e5317670fff2ed4994de9","bugs":{"url":"https://github.com/remdra/pdf-lib-incremental-save/issues"},"_id":"pdf-lib-incremental-save@1.17.4","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-MUuR0iMWvX2RF72V9mQWE8xe7vlHN4kgCfjFGtn807989psNt3F3+XkLdfkUzYRV/nsWMuWur+QmRTaF4jZF7Q==","shasum":"54634a72128c583c23d7e3177934a6efab23a960","tarball":"https://registry.npmjs.org/pdf-lib-incremental-save/-/pdf-lib-incremental-save-1.17.4.tgz","fileCount":1586,"unpackedSize":19532289,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdri7A4F7kkl62l0qfzfR1Z7b78pCekeIwlJVY/C6GRwIhAPV6b+cb9hfI5pXYrMG6FlxbWes6Pa/FLulGrUPVjwWC"}]},"_npmUser":{"name":"remdra","email":"remus.draica@gmail.com"},"directories":{},"maintainers":[{"name":"remdra","email":"remus.draica@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pdf-lib-incremental-save_1.17.4_1706535791577_0.5604532206110873"},"_hasShrinkwrap":false}},"maintainers":[{"name":"remdra","email":"remus.draica@gmail.com"}],"description":"Add incremental save functionality to pdf-lib.","homepage":"https://github.com/remdra/pdf-lib-incremental-save#readme","keywords":["pdf-lib","pdf","document","create","modify","creation","modification","edit","editing","typescript","javascript","library","incremental"],"repository":{"type":"git","url":"git+https://github.com/remdra/pdf-lib-incremental-save.git"},"contributors":[{"name":"jerp","url":"https://github.com/jerp"},{"name":"Greg Bacchus","url":"https://github.com/gregbacchus"},{"name":"Mickael Lecoq","url":"https://github.com/mlecoq"},{"name":"Philip Murphy","url":"https://github.com/philipjmurphy"},{"name":"Dmitry Kozliuk","url":"https://github.com/PlushBeaver"},{"name":"Said Amezyane","url":"https://github.com/samezyane"},{"name":"Georges Gabereau","url":"https://github.com/multiplegeorges"},{"name":"Gerard Smit","url":"https://github.com/GerardSmit"},{"name":"jlmessenger","url":"https://github.com/jlmessenger"},{"name":"thebenlamm","url":"https://github.com/thebenlamm"},{"name":"cshenks","url":"https://github.com/cshenks"},{"name":"James Woodrow","url":"https://github.com/jwoodrow"},{"name":"Guillaume Grossetie","url":"https://github.com/Mogztter"},{"name":"Philipp Tessenow","url":"https://github.com/tessi"},{"name":"Tim Kräuter","url":"https://github.com/timKraeuter"},{"name":"Richard Bateman","url":"https://github.com/taxilian"},{"name":"Sebastian Martinez","url":"https://github.com/sebastinez"},{"name":"soadzoor","url":"https://github.com/soadzoor"},{"name":"Slobodan Babic","url":"https://github.com/bockoblur"},{"name":"Zach Toben","url":"https://github.com/ztoben"},{"name":"Zack Sheppard","url":"https://github.com/zackdotcomputer"},{"name":"DkDavid","url":"https://github.com/DkDavid"},{"name":"Bj Tecu","url":"https://github.com/btecu"},{"name":"Brent McSharry","url":"https://github.com/mcshaz"},{"name":"Tim Knapp","url":"https://github.com/duffyd"},{"name":"Ching Chang","url":"https://github.com/ChingChang9"},{"name":"Remus DRAICA","url":"https://github.com/remdra"}],"author":{"name":"Remus DRAICA","email":"remus.draica@gmail.com"},"bugs":{"url":"https://github.com/remdra/pdf-lib-incremental-save/issues"},"license":"MIT","readme":"# This is an extension of [pdf-lib](https://www.npmjs.com/package/pdf-lib) that provides invremental save of altered pdf documents. \n\nFor the full documentation go to [pdf-lib](https://www.npmjs.com/package/pdf-lib) page. The documentation on this page is only related to the incremental feature.\n\n## Table of Contents\n\n- ...\n- Usage Examples\n  - ...\n  - [Incremental Document Modification](#incremental-document-modification)\n  - ...\n- ...\n\n\n\n### Incremental Document Modification\n\nThe incremental modification saving is designed to be used for pdf signing. The signature is added to an existing page, then only the 'incremental' PDF is generated and concatenated to the initial version.\n\n_This example produces [this PDF](assets/pdfs/examples/incremental_document_modification.pdf)_ (when [this PDF](assets/pdfs/simple.pdf) is used for the `existingPdfBytes` variable).\n\n<!-- prettier-ignore -->\n```js\nimport { PDFDocument, StandardFonts } from 'pdf-lib';\n\n// This should be a Uint8Array or ArrayBuffer\n// This data can be obtained in a number of different ways\n// If your running in a Node environment, you could use fs.readFile()\n// In the browser, you could make a fetch() call and use res.arrayBuffer()\nconst existingPdfBytes = ...\n\n// Load a PDFDocument from the existing PDF bytes\nconst pdfDoc = await PDFDocument.load(existingPdfBytes)\n\n// Take a snapshot of the document\nconst snapshot = pdfDoc.takeSnapshot();\n\n// Get the first page of the document\nconst pages = pdfDoc.getPages()\nconst firstPage = pages[0]\n\n// Mark the page as modified\nsnapshot.markRefForSave(firstPage.ref)\n\n// Draw a string of text diagonally across the first page\nfirstPage.drawText('Incremental saving is also awesome!', {\n  x: 50,\n  y: 4 * fontSize,\n  size: fontSize\n})\n\n// Serialize the PDFDocument to bytes (a Uint8Array)\nconst pdfIncrementalBytes = await pdfDoc.saveIncremental(snapshot)\nconst pdfBytes = Buffer.concatenate([ existingPdfBytes, pdfIncrementalBytes ])\n\n// For example, `pdfBytes` can be:\n//   • Written to a file in Node\n//   • Downloaded from the browser\n//   • Rendered in an <iframe>\n```\n\n## License\n\n[MIT](LICENSE.md)\n","readmeFilename":"README.md"}