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
Solved

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

Posted on 2007-03-20
2
453 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 SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
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…

856 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