I'm converting an Adobe LiveCycle pdf using Adobe ...
# cfml-general
m
I'm converting an Adobe LiveCycle pdf using Adobe Acrobat Pro. One of the fields I'm populating is an image field from a blob in the database. The user can select a new image which will display in the pdf and I can subsequently read from it and save the value into the database. This works fine when the pdf template was created in Adobe Livecyle. However when I generate the pdf based on Adobe Acrobat Pro, the image fields displays a blank space in the pdf. A cfdump of the image field value shows the value and I can read and display it in the browser. I'm using cfpdfform and cfpdfformparam to populate the image field. Is there some additional work or transformation I need to do in my code or in the pdf template for it to display in the actual pdf?
j
Looks like I needed to read in the .png file, then do a varname = imageReadBase64( img ) to convert it, then varname2 = imageMakeColorTransparent(varname,"FFFFFF") to give it a white background, then finally used the cfpdf action = "addwatermark" to insert the image into the pdf at a specific location.
m
Thanks for the suggestion but got this error "Unable to cast an object of type java.lang.String to Image." I think I need to go back to the client and present a static image of what the database currently has and display it in one section of the pdf and an adjacent image field where the user can enter their own selected image.