-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# ![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true) | ||
|
||
[![npm version](https://badge.fury.io/js/@signpdf%2Futils.svg)](https://badge.fury.io/js/@signpdf%2Futils) | ||
[![Donate to this project using Buy Me A Coffee](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg)](https://buymeacoffee.com/vbuch) | ||
|
||
Utilities from and for the [@signpdf family of packages](https://github.com/vbuch/node-signpdf/) that tries to make signing of PDFs simple in Node.js. | ||
|
||
## Usage | ||
|
||
Used by the other `@signpdf` packages internally. Additionally, needed for **PAdES compliant signatures**" | ||
|
||
```js | ||
import { plainAddPlaceholder } from '@signpdf/placeholder-plain'; | ||
import { SUBFILTER_ETSI_CADES_DETACHED } from '@signpdf/utils'; | ||
|
||
const pdfToSign = plainAddPlaceholder({ | ||
..., | ||
subFilter: SUBFILTER_ETSI_CADES_DETACHED, | ||
}); | ||
``` | ||
|
||
## Notes | ||
|
||
* Feel free to copy and paste any part of this code. See its defined [Purpose](#purpose). |