Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Inserting Images with Binding

Avatar

Level 1

I have an image I want to put into a standard issue PDF.  the binding comes from a SQL query and the value is the ID of the record.  We have images that match the values of the ID's so I want that image to display on the form.  normally this is super easy but I am new to LiveCycle and building forms.

any suggestions?

Image url would look like

http://www.somesite.com/1.gif

where 1 is the ID of the record that got pulled

thanks in advance

2 Replies

Avatar

Former Community Member

Hi ColinMHart,

To insert the image into the PDF you would need to store that image into an XML element which is bound to Image field in your form. BUT the trick is to store that image into the format that PDF is expecting it in. Your image data needs to be in base64 encoded format and then it would be shown in PDF form correctly.

regards,

Parth Pandya

Blog: http://livecyclekarma.wordpress.com

Avatar

Employee

Hi,

I am presenting some tips to generate PDF with LiveCycle Data Services in this video:

http://tv.adobe.com/#vi+f1472v1036

I am talking about the encodeImageAsBase64() function.