cfdocument
I'm using flash to communicate with a cfc document. I'm calling a function that needs to build a pdf. This is for a c
ertificate of completion for an online course. I can seem to create the pdf fine with just plain text. However, the adding of an image
does not work. I've also explored trying to make my image a pdf and just add the text to the existing pdf, but no luck. Here's my code for the creating a pdf with an image:
<cfdocument format="pdf" name="pdf23">
<cfoutput>
Some html content<br>
<img src="file://D:\Websites\short_sale_rulebook/Images/Certs/certBG.jpg">
</cfoutput>
</cfdocument>
<cfset savedFolder = "D:\Websites\short_sale_rulebook\Docs\PDF">
<cffile action="write" file="#savedFolder#/pdf23.pdf" output="#pdf23#">
Not that I've tried everything for the path of the image. Expand Path, the full path on the server with and without the "file://" or a third slash. I've also tried the actual path http://www... and that doesn't work as well. My pdf just shows the text only.
Solutions?