Skip to Content
0
Former Member
Jan 20, 2011 at 03:34 PM

How to dynamically call image in PDF for Acrobat ver 8.1 onwards?

141 Views

Hi Experts,

I am using Web Dynpro Java. My requirement is to call the images dynamically on a PDF form. There are no of company code. I have to call different logos for different company codes/

We are now using Acrobat 8.1.1. Please refer following thread.

http://kb2.adobe.com/cps/405/kb405270.html

From Acrobat 8.*, we have to use some different method for dynamically calling the images. Earlier we were using the concept mentioned below to dynamically call images.

However this method is not applicable for Acrobat Reader 8.* onwards due to security reasons.

Click on the Layout tab and choose None for the Caption position.
u2022 Click on the Object, then the Binding tab and choose None for Default Binding.
u2022 Click on the Field tab, enter $record.SapOnlineShopUrl for the URL entry, and select Use Image Size for the Sizing field.
u2022 Click on the script editor and enter the following FormCalc script statement, which enables the dynamic integration of the image. Show: initialize Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value; Language: FormCalc Run At: Client

write following code in wddoinit
try { String url = WDURLGenerator.getAbsoluteWebResourceURL( wdComponentAPI.getDeployableObjectPart(), "sap_online_shop.jpg"); wdContext.currentDataSourceElement().setSapOnlineShopUrl(url); } catch(Exception e) { throw new WDRuntimeException(e); }

Please let me know what is the alternate method for Adope ver 8.1.1

Regards,

Gary