?
Solved

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

Posted on 2007-03-20
2
Medium Priority
?
456 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
73Spyder earned 2000 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…
Suggested Courses

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