In regard to my previous post on Cfdocument and SSL I stand corrected. It is definitely possible to use a "file:" protocol identifier in the image path when using Cfdocument. My problem was with the syntax. As is often the case, a helpful reader put me on the right path. Thanks to Julian Halliwell for pointing out that my problem was syntax. I was trying 2 slashes as in:
Not only is this a rock solid fix for the SSL issue (see the previous post) but it has the potential to dramatically impact the speed of your cfdocument call, especially if you using large images. We have an application that embeds fairly large photographic images. I'm guessing this will greatly increase the speed of rendering. I'll post a follow up and let you know.
I am having time out issues - but strangely enough, if I use GIFs it loads no problem. Obviously I can't just use GIFs to display photos in a PDF so I am still searching for a solution..
Ok... cfdocument pulls these resources in (from the file system or using http) and then embeds them as BINARY objects in the file format. To do this for word / cfcontent - you will need to produce the equivilent binary representation that WORD expects. Remember - a document (like word or PDF) is self contained and off line - it has to contain everything it needs for the rendering engine to work. If you look at a .docx document with embedded images (for example) you will see what is probably binary or ... maybe base64 encoded values where the image is embedded. This will require some research. it may be possible using native CF like toBase64().. it's almost certainly possible using Java. But you likely have some long nights of trial and error ahead of you to do it.
-Markj