Solved

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

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
need help with active directory 4 65
MS Endpoint Protection 2 75
Migrating files on WS2003SP2 to Azure File Share 7 61
Time server on domain 3 22
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
What You Need to Know when Searching for a Webhost Provider
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…

733 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