import PDFDocument from 'src/api/PDFDocument' ; import PDFField from 'src/api/form/PDFField' ; import { PDFRef , PDFAcroSignature } from 'src/core' ; import { assertIs } from 'src/utils' ; /**
 * Represents a signature field of a [[PDFForm]].
 *
 * [[PDFSignature]] fields are digital signatures. `pdf-lib` does not
 * currently provide any specialized APIs for creating digital signatures or
 * reading the contents of existing digital signatures.
 */ export default class PDFSignature extends PDFField { param acroSignature param ref param doc static of = ( acroSignature , ref , doc ) => new PDFSignature ( acroSignature , ref , doc ) ; /** The low-level PDFAcroSignature wrapped by this signature. */ readonly acroField : PDFAcroSignature ; private constructor ( acroSignature , ref , doc ) { super ( acroSignature , ref , doc ) ; assertIs ( acroSignature , 'acroSignature' , [ [ PDFAcroSignature , 'PDFAcroSignature' ] , ] ) ; this . acroField = acroSignature ; } needsAppearancesUpdate ( ) { return false ; } }