PDF javascript to toggle display of image not working


I have a PDF that contains a field button, that when clicked, toggles an image on/off.

But with PDFNet SDK it does not work.


PDFNet javascript implementation only supports editing field values, and not general document editing, such as deleting pages.

Hiding an image would be better done through PDF layers (optional content groups).