Replace Button Image

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?


1 Reply

SP Sathya Ponnusamy Syncfusion Team October 13, 2017 12:32 PM UTC

  
Hi Bob Vale, 

Sorry for the inconvenience caused. 

At present we do not have a support for adding image field to the PDF document. So, We have logged your requirement “Need to add support to insert image field in PDF document” as feature request list and we will implement this feature in any of our upcoming release, we will let you know once the feature has been implemented. 
Please let us know if, you need any further assistance on this. 

Regards,
Sathya Ponnusamy 


Loader.
Up arrow icon