Coldfusion cfhtmltopdf tag not displaying bmp images -


i'm using <cfhtmltopdf> tag pull in .cfm file template , create pdf. works when use jpg image format. if image bmp - reason won't work. in template file , i'm using <cfdirectory> tag no filter pull in images.

<cfdirectory directory="e:\xxx\images\#image_id#\" name="mydir" type="file" sort="datelastmodified"> 

then i'm using <cfloop> display images directory...

 <cfloop query="mydir">   <cfif right(mydirmain.name,4) ".bmp" >          <img src="#request.root#images/#images_id#/#mydir.name#" border="0" width="230px" style="margin-bottom:15px;"  />       </cfif> 

this works great jpg, when trying use bmp images - it's no good.

does know if reason why bmp images issue or work jpg images?

there seems bug in system stops pdf's using bmp images. solution convert them using <cfimage> tag before creating pdf - workaround works, thou uses little bit more server resources.


Comments