I have a PDF document that has an image field created uses acrobat.
Acrobat creates the field as a button with a onmouseup event to set the icon.
How do I do this using PdfLoadedDocument and PdfLoadedButtonField?
using (var stream = new FileStream(pdfPath, FileMode.Open, FileAccess.ReadWrite, FileShare.None))
{
using (var doc = new PdfLoadedDocument(stream))
{
if (!doc.Form.Fields.TryGetField(formField, out var pdfField))
{
return false;
}
if (!(pdfField is PdfLoadedButtonField field))
{
return false;
}
There is no SetButtonImage function on field to achieve this?