首页 > 解决方案 > CFDocument isn't showing styles and images. Is HTTPS the problem?

问题描述

I have been using CFDocument for years with no problems. Suddenly the CFDocument is not showing formatting nor static images.

I have heard of the PDF engine crapping out, but other code is generating the documents just fine. And I have rebooted the software.

Is it possible that the HTTPS vs HTTP is the problem. As the sites functioning fine are http. I have just noticed this on the https site.

I'm lost. If it is an https/http problem, what is fix?

 <cfdocument 
    format="pdf" 
    filename = "inspection_pdf\#busid#_#inspid#.pdf"
    overwrite = "yes"
    marginBottom = ".6"
    marginLeft = ".4"
    marginRight = ".4"
    marginTop = ".2">

    <style type="text/css">@import "pdf.css";</style>

As related, this code above has been working for years with no issues.

标签: httpscoldfusioncoldfusion-2016cfdocument

解决方案


推荐阅读