This content has been marked as final. Show 8 replies
If you have CF8 these request can be apply with some little tricks. But if you are working with old CF version you can try to check out Adobe Exchange or cftagstore.com for commercial solutions.
If you can share some of your problems we can trey to figure out together.
Sorry for second post. There is a lag on Adobe servers and needed to hit twice.
Thanks for the reply! We are using CF 8. I tried setting the backgound of the page with a hi-res image to create a background and generate the page from that, but it took about 30 seconds to load (too long for the client). I would not be opposed to using a pdf and cfform tag, as long as I can remove the white text areas (so they show like labels) and I can insert the images from the query. Or just writing to the pdf that already has a background would work too. just need to get it working.
First I can suggest to check the demos in Ray Camden's blog for PDF usage.
You can find some related post below.
Second, please share some code that we can see what would be the part that may need optimization.
I actually went through those tutorials last night, but didn't see a way to do what I need to do. Long story short, I need the following to output on a pdf with a high-res background image;
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<!---Insert a test image name if field is undefined--->
<cfdocument format="pdf" orientation="landscape" saveAsName="test.pdf">
<!---Create the pdf--->
<td><p><img src="#image1#" ></p><br/></td>
<td><p><img src="#image2#" ></p><br/></td>
I have tried following code to generate a background image in CF8 and it worked without any problem.
<cfdocument format="PDF" pagetype="letter" margintop="0" marginbottom="0" marginright="0" marginleft="0" orientation="landscape" backgroundvisible="yes">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
"flashflexair.jpg" is an image with the size of 3200 px.
Yes the load was a bit longer than normal process but I think this is a general issue with other server side solutions.
Thanks for the reply Oguz. The background I am using is 8.5x11. Do you think DDX might work for this?
As I know there is a "Background" feature in DDX. I would expect having same functionality.