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

Avatar

Avatar
Validate 1
Level 3
Yan_Kliaver
Level 3

Likes

6 likes

Total Posts

92 posts

Correct reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
Yan_Kliaver
Level 3

Likes

6 likes

Total Posts

92 posts

Correct reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
Yan_Kliaver
Level 3

09-11-2008

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

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

10-11-2008

Are you using LiveCycle Forms to render the form?

Avatar

Avatar
Validate 1
Level 3
Yan_Kliaver
Level 3

Likes

6 likes

Total Posts

92 posts

Correct reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
Yan_Kliaver
Level 3

Likes

6 likes

Total Posts

92 posts

Correct reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
Yan_Kliaver
Level 3

10-11-2008

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).