Solved

Coldfusion: PDF generator using cfdocument has quit honoring style sheets and image links

Posted on 2007-03-20
2
451 Views
Last Modified: 2013-12-24
Cfdocument PDF has quit working after months of working fine.  Specifically, the style sheets and images are no longer honored.  We checked directory security based on previous question and this was not our solution.  we are running MX7 on a Windows 2003 server.  Last update was March 11 - a new JVM package was installed to accommodate the daylight savings time change.  (j2sdk1.4.2_11)  There are no other known issues with these websites.  All references to the style sheets and images are inside the <cfdocument> tags.
0
Comment
Question by:rmillslatitude
2 Comments
 
LVL 9

Accepted Solution

by:
73Spyder earned 500 total points
ID: 18770658
I ran across a similar issue in the past, I am not sure about the images, but for the styles sheets I changed the page to a style.cfm page instead of a .css

Then within the <cfdocument> tags I have this.

      <cfoutput>
            <style type="text/css">
             <cfincludetemplate="/#application.applicationname#/style.cfm">
            </style>
      </cfoutput>

This seems to be more reliable that the normal way to link to styles for us when we export to pdf or other media.
0
 

Author Comment

by:rmillslatitude
ID: 18771281
Thank you for the tip.  We will start testing.

rmillslatitude
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question