Improve samples in readme.
parent
1583e5f70f
commit
213cf53474
|
@ -15,7 +15,7 @@ Just import the dependencies and this tool.
|
||||||
```html
|
```html
|
||||||
<script src="https://unpkg.com/pdf-lib/dist/pdf-lib.min.js" type="text/javascript"></script>
|
<script src="https://unpkg.com/pdf-lib/dist/pdf-lib.min.js" type="text/javascript"></script>
|
||||||
<script src="https://unpkg.com/node-forge/dist/forge.min.js" type="text/javascript"></script>
|
<script src="https://unpkg.com/node-forge/dist/forge.min.js" type="text/javascript"></script>
|
||||||
<script src="zgapdfsigner.js" type="text/javascript"></script>
|
<script src="https://github.com/zboris12/zgapdfsigner/releases/download/1.0.0/zgapdfsigner.js" type="text/javascript"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Let's sign
|
## Let's sign
|
||||||
|
@ -27,7 +27,7 @@ Sign with an invisible signature.
|
||||||
* @param {ArrayBuffer} pdf
|
* @param {ArrayBuffer} pdf
|
||||||
* @param {ArrayBuffer} cert
|
* @param {ArrayBuffer} cert
|
||||||
* @param {string} pwd
|
* @param {string} pwd
|
||||||
* @return {Blob}
|
* @return {Promise<Blob>}
|
||||||
*/
|
*/
|
||||||
async function sign1(pdf, cert, pwd){
|
async function sign1(pdf, cert, pwd){
|
||||||
/** @type {SignOption} */
|
/** @type {SignOption} */
|
||||||
|
@ -49,7 +49,7 @@ Sign with a visible signature of a picture.
|
||||||
* @param {string} pwd
|
* @param {string} pwd
|
||||||
* @param {ArrayBuffer} imgdat
|
* @param {ArrayBuffer} imgdat
|
||||||
* @param {string} imgtyp
|
* @param {string} imgtyp
|
||||||
* @return {Blob}
|
* @return {Promise<Blob>}
|
||||||
*/
|
*/
|
||||||
async function sign2(pdf, cert, pwd, imgdat, imgtyp){
|
async function sign2(pdf, cert, pwd, imgdat, imgtyp){
|
||||||
/** @type {SignOption} */
|
/** @type {SignOption} */
|
||||||
|
|
Loading…
Reference in New Issue