Solved

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

Posted on 2007-03-20
2
448 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
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 …
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now