{"_id":"@adnsistemas/placeholder-pdf-lib","_rev":"6-fe3aa8f9628eb156e54fceffbbffd420","name":"@adnsistemas/placeholder-pdf-lib","dist-tags":{"latest":"3.3.0"},"versions":{"3.2.8":{"name":"@adnsistemas/placeholder-pdf-lib","version":"3.2.8","keywords":["sign","pdf","node","nodejs","esign","adobe","ppklite","sign detached","pkcs7","pkcs#7","pades","digital signature"],"license":"MIT","_id":"@adnsistemas/placeholder-pdf-lib@3.2.8","maintainers":[{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"}],"dist":{"shasum":"e618d3cfbe1b7a2720b92ea3e126f6c37b7acc4a","tarball":"https://registry.npmjs.org/@adnsistemas/placeholder-pdf-lib/-/placeholder-pdf-lib-3.2.8.tgz","fileCount":7,"integrity":"sha512-AGA/RofRyiogOsLBbNupsox6zyJc7qz/lcGKA4h0bR3ncIpyhpQcpnYB6/6dtyzHyzZta0rapeZCBwwIJSpdQA==","signatures":[{"sig":"MEQCIAs4AHRGeqDb3ocDn6qJnYZpcIcnp9qceO+31KRyBNNjAiAl0TWrR7KIPr7HgtGEPUCZD4/xHyQM68BLjIbYfMp/UQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13932},"main":"dist/pdflibAddPlaceholder.js","types":"dist/pdflibAddPlaceholder.d.ts","engines":{"node":">=12","yarn":">=1.22.18"},"funding":[{"url":"https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf","type":"individual"}],"gitHead":"56f621c5b6b240f363927cdab47ec8e0bb9fa180","scripts":{"lint":"eslint -c .eslintrc --ignore-path ../../.eslintignore ./","test":"jest","build":"yarn build:clean && yarn build:compile && yarn build:types","build:clean":"rm -rf ./dist/*","build:types":"yarn build:types:compile && yarn build:types:verify","build:compile":"babel ./src -d ./dist --ignore \"**/*.test.js\"","build:types:verify":"tsd --files=index.test-d.ts","build:types:compile":"tsc"},"_npmUser":{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"},"deprecated":"Visual appearance of signatures has been deeply modified to adhere to PDF standard","repository":{"url":"https://github.com/adnsistemas/node-signpdf","type":"git"},"description":"Use PDF-LIB (with incremental updates) to insert a signature placeholder.","directories":{},"dependencies":{"@signpdf/utils":"^3.2.4"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.30.7","jest":"^27.3.1","husky":"^7.0.4","eslint":"^8.50.0","coveralls":"^3.0.2","@babel/cli":"^7.0.0","babel-jest":"^27.3.1","node-forge":"^1.2.1","typescript":"^5.2.2","@babel/core":"^7.4.0","@babel/node":"^7.0.0","@types/node":">=12.0.0","assertion-error":"^1.1.0","@babel/preset-env":"^7.4.2","@types/node-forge":"^1.2.1","eslint-plugin-jest":"^25.2.4","@adnsistemas/pdf-lib":"^1.18.0","@babel/eslint-parser":"^7.16.3","eslint-plugin-import":"^2.25.3","@signpdf/eslint-config":"^3.2.3","@signpdf/internal-utils":"^3.2.0","eslint-config-airbnb-base":"^15.0.0","babel-plugin-module-resolver":"^3.1.1","eslint-import-resolver-babel-module":"^5.3.1","@babel/plugin-syntax-object-rest-spread":"^7.0.0"},"peerDependencies":{"@adnsistemas/pdf-lib":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/placeholder-pdf-lib_3.2.8_1746816867628_0.16749406248718368","host":"s3://npm-registry-packages-npm-production"}},"3.2.9":{"name":"@adnsistemas/placeholder-pdf-lib","version":"3.2.9","keywords":["sign","pdf","node","nodejs","esign","adobe","ppklite","sign detached","pkcs7","pkcs#7","pades","digital signature"],"license":"MIT","_id":"@adnsistemas/placeholder-pdf-lib@3.2.9","maintainers":[{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"}],"dist":{"shasum":"a90b6e997de6d13dbdb7c9d915ff6f50f7003290","tarball":"https://registry.npmjs.org/@adnsistemas/placeholder-pdf-lib/-/placeholder-pdf-lib-3.2.9.tgz","fileCount":7,"integrity":"sha512-875URhihZVkWhphQGQVxQks9t7sW5Zkmv9l7jyBomDIOFfA4xxQa3tahLoVY0gysPBVPwTwQhH6SuTp1UZiPjw==","signatures":[{"sig":"MEUCIHFJfib4BMwzNtPGApa19liMTM1Lccuhcfxlb55lFhbuAiEA+NEllUVwfQmiiSrRntfBiFWkN9JZu1AxOlv3Dji7IPY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13932},"main":"dist/pdflibAddPlaceholder.js","types":"dist/pdflibAddPlaceholder.d.ts","engines":{"node":">=12","yarn":">=1.22.18"},"funding":[{"url":"https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf","type":"individual"}],"gitHead":"56f621c5b6b240f363927cdab47ec8e0bb9fa180","scripts":{"lint":"eslint -c .eslintrc --ignore-path ../../.eslintignore ./","test":"jest","build":"yarn build:clean && yarn build:compile && yarn build:types","build:clean":"rm -rf ./dist/*","build:types":"yarn build:types:compile && yarn build:types:verify","build:compile":"babel ./src -d ./dist --ignore \"**/*.test.js\"","build:types:verify":"tsd --files=index.test-d.ts","build:types:compile":"tsc"},"_npmUser":{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"},"deprecated":"Visual appearance of signatures has been deeply modified to adhere to PDF standard","repository":{"url":"https://github.com/adnsistemas/node-signpdf","type":"git"},"description":"Use PDF-LIB (with incremental updates) to insert a signature placeholder.","directories":{},"dependencies":{"@signpdf/utils":"^3.2.4"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.30.7","jest":"^27.3.1","husky":"^7.0.4","eslint":"^8.50.0","coveralls":"^3.0.2","@babel/cli":"^7.0.0","babel-jest":"^27.3.1","node-forge":"^1.2.1","typescript":"^5.2.2","@babel/core":"^7.4.0","@babel/node":"^7.0.0","@types/node":">=12.0.0","assertion-error":"^1.1.0","@babel/preset-env":"^7.4.2","@types/node-forge":"^1.2.1","eslint-plugin-jest":"^25.2.4","@adnsistemas/pdf-lib":"^1.18.0","@babel/eslint-parser":"^7.16.3","eslint-plugin-import":"^2.25.3","@signpdf/eslint-config":"^3.2.3","@signpdf/internal-utils":"^3.2.0","eslint-config-airbnb-base":"^15.0.0","babel-plugin-module-resolver":"^3.1.1","eslint-import-resolver-babel-module":"^5.3.1","@babel/plugin-syntax-object-rest-spread":"^7.0.0"},"peerDependencies":{"@adnsistemas/pdf-lib":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/placeholder-pdf-lib_3.2.9_1747423692352_0.7657748330076379","host":"s3://npm-registry-packages-npm-production"}},"3.2.10":{"name":"@adnsistemas/placeholder-pdf-lib","version":"3.2.10","keywords":["sign","pdf","node","nodejs","esign","adobe","ppklite","sign detached","pkcs7","pkcs#7","pades","digital signature"],"license":"MIT","_id":"@adnsistemas/placeholder-pdf-lib@3.2.10","maintainers":[{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"}],"homepage":"https://github.com/adnsistemas/node-signpdf#readme","bugs":{"url":"https://github.com/adnsistemas/node-signpdf/issues"},"dist":{"shasum":"078b8c405e10bd1ddf6c1fb45b895a85724178d3","tarball":"https://registry.npmjs.org/@adnsistemas/placeholder-pdf-lib/-/placeholder-pdf-lib-3.2.10.tgz","fileCount":5,"integrity":"sha512-yC9rHhMGqexFvOiR59GNE9ctD5O2zcFwAvTO1JNQmBEU181B0dWvHNvyRpDBjcPLo8mSVMFnqAzBRyfs7Vcsyw==","signatures":[{"sig":"MEUCIDQCic3YEYI535Jl5BCRlGhz1Z24Xh0h2g+yxOlQ1D9XAiEAj9gvTDe/iO3qiOreClfqkK57p6XGU6KF3U4hCoK5UTI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14179},"main":"dist/pdflibAddPlaceholder.js","types":"dist/pdflibAddPlaceholder.d.ts","engines":{"node":">=12","yarn":">=1.22.18"},"funding":[{"url":"https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf","type":"individual"}],"gitHead":"56f621c5b6b240f363927cdab47ec8e0bb9fa180","scripts":{"lint":"eslint -c .eslintrc --ignore-path ../../.eslintignore ./","test":"jest","build":"yarn build:clean && yarn build:compile && yarn build:types","build:clean":"rm -rf ./dist/*","build:types":"yarn build:types:compile && yarn build:types:verify","build:compile":"babel ./src -d ./dist --ignore \"**/*.test.js\"","build:types:verify":"tsd --files=index.test-d.ts","build:types:compile":"tsc"},"_npmUser":{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"},"deprecated":"Visual appearance of signatures has been deeply modified to adhere to PDF standard","repository":{"url":"git+https://github.com/adnsistemas/node-signpdf.git","type":"git"},"_npmVersion":"10.8.2","description":"Use PDF-LIB (with incremental updates) to insert a signature placeholder.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"@signpdf/utils":"^3.2.4"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.30.7","jest":"^27.3.1","husky":"^7.0.4","eslint":"^8.50.0","coveralls":"^3.0.2","@babel/cli":"^7.0.0","babel-jest":"^27.3.1","node-forge":"^1.2.1","typescript":"^5.2.2","@babel/core":"^7.4.0","@babel/node":"^7.0.0","@types/node":">=12.0.0","assertion-error":"^1.1.0","@babel/preset-env":"^7.4.2","@types/node-forge":"^1.2.1","eslint-plugin-jest":"^25.2.4","@adnsistemas/pdf-lib":">=1.18.0","@babel/eslint-parser":"^7.16.3","eslint-plugin-import":"^2.25.3","@signpdf/eslint-config":"^3.2.3","@signpdf/internal-utils":"^3.2.0","eslint-config-airbnb-base":"^15.0.0","babel-plugin-module-resolver":"^3.1.1","eslint-import-resolver-babel-module":"^5.3.1","@babel/plugin-syntax-object-rest-spread":"^7.0.0"},"peerDependencies":{"@adnsistemas/pdf-lib":">=1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/placeholder-pdf-lib_3.2.10_1752968304701_0.4846377878688244","host":"s3://npm-registry-packages-npm-production"}},"3.2.11":{"name":"@adnsistemas/placeholder-pdf-lib","version":"3.2.11","keywords":["sign","pdf","node","nodejs","esign","adobe","ppklite","sign detached","pkcs7","pkcs#7","pades","digital signature"],"license":"MIT","_id":"@adnsistemas/placeholder-pdf-lib@3.2.11","maintainers":[{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"}],"homepage":"https://github.com/adnsistemas/node-signpdf#readme","bugs":{"url":"https://github.com/adnsistemas/node-signpdf/issues"},"dist":{"shasum":"e0c39a1f6c91ae1da1e1c8b3ae6bffde671d8d97","tarball":"https://registry.npmjs.org/@adnsistemas/placeholder-pdf-lib/-/placeholder-pdf-lib-3.2.11.tgz","fileCount":5,"integrity":"sha512-ayExrXrLL+CINTZqSSBN2Vv5P9M7KDnRBDIfegFzaN+9MMKLdTLYJTBI5J3zzSMU/V0yoipO8M85Do8rfPlLaw==","signatures":[{"sig":"MEYCIQDSPH8P34Qvo7NvsFgSj1QOaaYqasbzAARy8yAGUTsKWQIhAMZIEVojlglUyiXv+nh1rW8EuZ4YF1WQYzaIwuyMbOwf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14204},"main":"dist/pdflibAddPlaceholder.js","types":"dist/pdflibAddPlaceholder.d.ts","engines":{"node":">=12","yarn":">=1.22.18"},"funding":[{"url":"https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf","type":"individual"}],"gitHead":"56f621c5b6b240f363927cdab47ec8e0bb9fa180","scripts":{"lint":"eslint -c .eslintrc --ignore-path ../../.eslintignore ./","test":"jest","build":"yarn build:clean && yarn build:compile && yarn build:types","build:clean":"rm -rf ./dist/*","build:types":"yarn build:types:compile && yarn build:types:verify","build:compile":"babel ./src -d ./dist --ignore \"**/*.test.js\"","build:types:verify":"tsd --files=index.test-d.ts","build:types:compile":"tsc"},"_npmUser":{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"},"deprecated":"Visual appearance of signatures has been deeply modified to adhere to PDF standard","repository":{"url":"git+https://github.com/adnsistemas/node-signpdf.git","type":"git"},"_npmVersion":"11.9.0","description":"Use PDF-LIB (with incremental updates) to insert a signature placeholder.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@signpdf/utils":"^3.2.4"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.30.7","jest":"^27.3.1","husky":"^7.0.4","eslint":"^8.50.0","coveralls":"^3.0.2","@babel/cli":"^7.0.0","babel-jest":"^27.3.1","node-forge":"^1.2.1","typescript":"^5.2.2","@babel/core":"^7.4.0","@babel/node":"^7.0.0","@types/node":">=12.0.0","assertion-error":"^1.1.0","@babel/preset-env":"^7.4.2","@types/node-forge":"^1.2.1","eslint-plugin-jest":"^25.2.4","@adnsistemas/pdf-lib":">=2.9.0","@babel/eslint-parser":"^7.16.3","eslint-plugin-import":"^2.25.3","@signpdf/eslint-config":"^3.2.3","@signpdf/internal-utils":"^3.2.0","eslint-config-airbnb-base":"^15.0.0","babel-plugin-module-resolver":"^3.1.1","eslint-import-resolver-babel-module":"^5.3.1","@babel/plugin-syntax-object-rest-spread":"^7.0.0"},"peerDependencies":{"@adnsistemas/pdf-lib":">=2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/placeholder-pdf-lib_3.2.11_1774384237291_0.35331895597008334","host":"s3://npm-registry-packages-npm-production"}},"3.3.0":{"name":"@adnsistemas/placeholder-pdf-lib","version":"3.3.0","description":"Use PDF-LIB (with incremental updates) to insert a signature placeholder.","repository":{"type":"git","url":"git+https://github.com/adnsistemas/node-signpdf.git"},"license":"MIT","keywords":["sign","pdf","node","nodejs","esign","adobe","ppklite","sign detached","pkcs7","pkcs#7","pades","digital signature"],"funding":[{"type":"individual","url":"https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf"}],"main":"dist/pdflibAddPlaceholder.js","types":"dist/pdflibAddPlaceholder.d.ts","engines":{"node":">=12","yarn":">=1.22.18"},"scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile && yarn build:types","lint":"eslint -c .eslintrc --ignore-path ../../.eslintignore ./","build:clean":"rm -rf ./dist/*","build:compile":"babel ./src -d ./dist --ignore \"**/*.test.js\"","build:types":"yarn build:types:compile && yarn build:types:verify","build:types:compile":"tsc","build:types:verify":"tsd --files=index.test-d.ts"},"dependencies":{"@signpdf/utils":"^3.2.4"},"peerDependencies":{"@adnsistemas/pdf-lib":">=2.9.0"},"devDependencies":{"@adnsistemas/pdf-lib":">=2.9.0","@babel/cli":"^7.0.0","@babel/core":"^7.4.0","@babel/eslint-parser":"^7.16.3","@babel/node":"^7.0.0","@babel/plugin-syntax-object-rest-spread":"^7.0.0","@babel/preset-env":"^7.4.2","@signpdf/eslint-config":"^3.2.3","@signpdf/internal-utils":"^3.2.0","@types/node":">=12.0.0","@types/node-forge":"^1.2.1","assertion-error":"^1.1.0","babel-jest":"^27.3.1","babel-plugin-module-resolver":"^3.1.1","coveralls":"^3.0.2","eslint":"^8.50.0","eslint-config-airbnb-base":"^15.0.0","eslint-import-resolver-babel-module":"^5.3.1","eslint-plugin-import":"^2.25.3","eslint-plugin-jest":"^25.2.4","husky":"^7.0.4","jest":"^27.3.1","node-forge":"^1.2.1","tsd":"^0.30.7","typescript":"^5.2.2"},"gitHead":"56f621c5b6b240f363927cdab47ec8e0bb9fa180","_id":"@adnsistemas/placeholder-pdf-lib@3.3.0","bugs":{"url":"https://github.com/adnsistemas/node-signpdf/issues"},"homepage":"https://github.com/adnsistemas/node-signpdf#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-ei1MEd61IuhTVe96UNU+Mfhp6cI/EFRqsPiJsk6/XeqyTQ//dML12ssEsQoVvY9j/RFhEK70dk2KhimjAeg6FA==","shasum":"1954787c75825706a42c2b9de97829f1e5de22a4","tarball":"https://registry.npmjs.org/@adnsistemas/placeholder-pdf-lib/-/placeholder-pdf-lib-3.3.0.tgz","fileCount":5,"unpackedSize":13587,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD1ufETIL5cLYyUG3X26YSF9FROSAlw4WuJtNSDhTiAQQIhANTblKWhU54+r3V0vDGP003EQUCU854Qub7mMR5S6Uu7"}]},"_npmUser":{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"},"directories":{},"maintainers":[{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/placeholder-pdf-lib_3.3.0_1788824997512_0.9940713643023766"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-09T18:54:27.567Z","modified":"2026-09-07T23:49:57.756Z","3.2.8":"2025-05-09T18:54:27.972Z","3.2.9":"2025-05-16T19:28:12.539Z","3.2.10":"2025-07-19T23:38:24.898Z","3.2.11":"2026-03-24T20:30:37.450Z","3.3.0":"2026-09-07T23:49:57.631Z"},"bugs":{"url":"https://github.com/adnsistemas/node-signpdf/issues"},"license":"MIT","homepage":"https://github.com/adnsistemas/node-signpdf#readme","keywords":["sign","pdf","node","nodejs","esign","adobe","ppklite","sign detached","pkcs7","pkcs#7","pades","digital signature"],"repository":{"type":"git","url":"git+https://github.com/adnsistemas/node-signpdf.git"},"description":"Use PDF-LIB (with incremental updates) to insert a signature placeholder.","maintainers":[{"name":"adnsistemas","email":"dabdala@adnsistemas.com.ar"}],"readme":"# Helper that provides placeholder using PDF-LIB (@adnsistemas/pdf-lib)\n\nfor [![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true)](https://github.com/vbuch/node-signpdf/)\n\n[![npm version](https://badge.fury.io/js/@adnsistemas%2Fplaceholder-pdf-lib.svg)](https://www.npmjs.com/package/@adnsistemas%2Fplaceholder-pdf-lib)\n\nWorks with `PDF-LIB` (@adnsistemas/pdf-lib) and given a PDFDocument that is in the works, adds an e-signature placeholder. When the PDF is ready you can convert it to Buffer and pass it to `@signpdf/signpdf` to complete the process.\n\n## Usage\n\nYou will need `$ npm i -S @adnsistemas/placeholder-pdf-lib @adnsistemas/pdf-lib @signpdf/signpdf node-forge` and a look at the [pdf-lib.js example](/packages/examples/src/pdf-lib.js).\n\n## Notes\n\n* Make sure to have a look at the docs of the [@signpdf family of packages](https://github.com/vbuch/node-signpdf/).\n* Feel free to copy and paste any part of this code. See its defined [Purpose](https://github.com/vbuch/node-signpdf#purpose).\n\n### Signature length\n\nSigning in detached mode makes the signature length independent of the PDF's content length, but it may still vary between different signing certificates. So every time you sign using the same P12 you will get the same length of the output signature, no matter the length of the signed content. It is safe to find out the actual signature length your certificate produces and use it to properly configure the placeholder length.\n\n### PAdES compliant signatures\n\nTo produce PAdES compliant signatures, the ETSI Signature Dictionary SubFilter value must be `ETSI.CAdES.detached` instead of the standard Adobe value.\n\nThis can be declared using the subFilter option argument.\n\n```js\nimport { pdflibAddPlaceholder } from '@adnsistemas/placeholder-pdf-lib';\nimport { SUBFILTER_ETSI_CADES_DETACHED } from '@signpdf/utils';\n\npdflibAddPlaceholder({\n  pdfDoc: pdfToSign,\n  ...,\n  subFilter: SUBFILTER_ETSI_CADES_DETACHED,\n});\n```\n","readmeFilename":"README.md"}