Gathering detailed insights and metrics for @signpdf/placeholder-plain
Gathering detailed insights and metrics for @signpdf/placeholder-plain
Gathering detailed insights and metrics for @signpdf/placeholder-plain
Gathering detailed insights and metrics for @signpdf/placeholder-plain
npm install @signpdf/placeholder-plain
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (99%)
TypeScript (0.93%)
Shell (0.07%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
797 Stars
499 Commits
194 Forks
21 Watchers
8 Branches
27 Contributors
Updated on Jul 09, 2025
Latest Version
3.2.5
Package Id
@signpdf/placeholder-plain@3.2.5
Unpacked Size
29.95 kB
Size
9.37 kB
File Count
36
NPM Version
lerna/7.3.0/node@v20.12.2+x64 (win32)
Node Version
20.12.2
Published on
Mar 11, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
24
Implements adding e-signature placeholder with plain string operations (.indexOf(), .replace(), .match(), etc.). Because of the lack of semantics it is rather fragile. Additionally it doesn't support streams and only works on PDF version <= 1.3. Regardless of those disadvantages this flow seems to be the most popular among the users of @signpdf.
Start with $ npm i -S @signpdf/signpdf @signpdf/placeholder-plain node-forge
. Head over to either the JS example or the TS one.
Should you need some help go stright to our GitHub Issues.
Signing 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.
To produce PAdES compliant signatures, the ETSI Signature Dictionary SubFilter value must be ETSI.CAdES.detached
instead of the standard Adobe value. This can be declared using the subFilter option argument.
1import { plainAddPlaceholder } from '@signpdf/placeholder-plain'; 2import { SUBFILTER_ETSI_CADES_DETACHED } from '@signpdf/utils'; 3 4const pdfToSign = plainAddPlaceholder({ 5 ..., 6 subFilter: SUBFILTER_ETSI_CADES_DETACHED, 7});
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
8 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 8
Reason
Found 5/18 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More