Expand my Community achievements bar.

Load image dynamically by scripting to dynamic xml pdf, is it possible?

Avatar

Former Community Member
Hi All,



I've uploaded static pdf form to http://groups.google.com/group/livecycle/web/logo.pdf.



The form contains ImageField.

In the "docReady" event of the form I wrote a script:

ImageField1.value.image.href="http://www.quicksoft.co.il/images/

quicksoftlogo2.jpg";

When the form is loaded the ImageField shows the image from the url

I've updated in the script.

Once the form is saved as dynamic xml pdf the script stop working.

Is that means that it is not possible to load images by scripting to

dynamic xml pdfs?

Anyone familiar with workarounds for it?



Thanks in advance,



Rbuz
2 Replies

Avatar

Former Community Member
Are you using LiveCycle Forms to render the form?

Avatar

Former Community Member
I got an answer from Adobe:



Dynamic change of an image href has been disabled due to potential security issues. There are however a few workarounds to choose from:



1. Embedding the images in the form as hidden objects. They can then be set to visible on initialize or clicking a button. This will affect performance, but if the images are in a compressed format, this can be minimized.

2. Create a Web service interface to grab the image from wherever they are stored, base64 encode it and return it to the form. You would also have to update the bindings for the image field on the form (a one time operation).