I am trying to read the pix from assets folder but do not know what file type I should use.
if (document.form.fields[i].name == 'Signature') {
final ByteData data =
await rootBundle.load('assets/pfx/certificate.pfx');
final List<int> bytes =
data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes);
document.form.fields.add(
PdfSignatureField(document.pages.add(), 'Sign',
bounds: document.form.fields[i].bounds,
signature: PdfSignature(
certificate: PdfCertificate(bytes, 'password123'))),
);
}