UNPKG

@signpdf/placeholder-pdf-lib

Version:

Use PDF-LIB to insert a signature placeholder.

34 lines 1.06 kB
export function pdflibAddPlaceholder({ pdfDoc, pdfPage, reason, contactInfo, name, location, signingTime, signatureLength, byteRangePlaceholder, subFilter, widgetRect, appName, }: InputType): void; export type PDFDocument = import('pdf-lib').PDFDocument; export type PDFPage = import('pdf-lib').PDFPage; export type CommonInputType = { pdfDoc?: PDFDocument; pdfPage?: PDFPage; reason: string; contactInfo: string; name: string; location: string; signingTime?: Date; signatureLength?: number; byteRangePlaceholder?: string; /** * One of SUBFILTER_* from \@signpdf/utils */ subFilter?: string; /** * [x1, y1, x2, y2] widget rectangle */ widgetRect?: number[]; /** * Name of the application generating the signature */ appName?: string; }; export type DocInputType = { pdfDoc: PDFDocument; }; export type PageInputType = { pdfPage: PDFPage; }; export type InputType = CommonInputType & (DocInputType | PageInputType); //# sourceMappingURL=pdflibAddPlaceholder.d.ts.map