Skip to main content
Known Participant
December 15, 2021
Answered

Why an image field shows a button properties page and not working like image in LiveCycle Designer

  • December 15, 2021
  • 1 reply
  • 5146 views

When I use Acrobat Pro DC to add an image field, the property page shows it is a button and not working like the image field in LiveCycle Designer which can load the image files dynamically.

 

This topic has been closed for replies.
Correct answer Bernd Alheit

Exit the form edit mode and click on the button.

 

Info: Acrobat and Designer creates different form types.

1 reply

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
December 15, 2021

Exit the form edit mode and click on the button.

 

Info: Acrobat and Designer creates different form types.

Known Participant
December 15, 2021

Thanks for the info. Is there a way to fill the image field dynamically via the .net codes?

Thom Parker
Community Expert
Community Expert
May 7, 2024

Do you have an email for me to send?

thanks


All of the code for loading the icons is in a document script, which executes when the PDF is opened. Performing annotation related actions (form fields are annotations) during the open process is problematic because the PDF may not be completely loaded and initialized at the time the script is run, which is why document scripts should only be used for defining functions and variables.  This is especially problematic if complex operation are required such as image conversion.  

 

One solution to this is to delay execution of the code by using the "app.setTimeout" function to call a document level fucntion that performs the process. 

Another solution is to use a Page open action on the first page to call the initialization function. If this method is used you also have to provide a state variable to block the function from being called multiple times. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often