🚸 🚚 rename signDocument to addDigitalSignature, sign only when signatures exist

This commit is contained in:
Timur Ercan
2023-03-02 17:54:19 +01:00
parent 7980ed4998
commit c6cdb116e3
3 changed files with 22 additions and 7 deletions

View File

@ -8,7 +8,9 @@ import {
PDFString,
} from "pdf-lib";
export const signDocument = async (documentAsBase64: string): Promise<any> => {
export const addDigitalSignature = async (
documentAsBase64: string
): Promise<any> => {
// Custom code to add Byterange to PDF
const PDFArrayCustom = require("./PDFArrayCustom");