I've been playing around with cfdocument and it's driving me absolutely nuts!  I have a simple page that looks something like this

<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="styles.css">

<cfinclude teamplate="title.cfm">

Tjos os a test


When i wrap  a cfdocument around this, it creates the PDF just fine, however the problem I'm having is that the included template does not pickup my stiles.   I don't know what to do to get this fixed.  I want Aial.  Any thoughts.  Thanks in advance
Who is Participating?

Improve company productivity with a Business Account.Sign Up

SidFishesConnect With a Mentor Commented:
From what I've seen images with resolution higher than 96 dpi may cuase this scaling issue - you could see if making sure that is the case helps.

you also may want to try forcing the page size of cfdocument by adding the pagetype="letter" attribute (I'd try this one first if you haven't already)
SidFishesConnect With a Mentor Commented:
You can't use  link to the style sheet. You need to use @import

It's also picky about doctype

more here
trifecta2kAuthor Commented:
I will try that and let you know. Probably won't be able to get to it until Monday.
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

trifecta2kAuthor Commented:
I did everything and it works for the most part.  I still have one weird issue.  In my PDF I use <cfimage>.  This block isn't hit all the time because some reports have a chart and some don't.  When it hits the <cfimage> tag the font size seems to resize.  Any ideas?  These reports need to look uniform and right now they change size when I add an image.
not specifically but there are a couple of things to try

1) make sure you are fully patched. There have been many, many cfdocument issues fixed since the tag was introduced.
2) unless there's a compelling reason, don't use cfimage within the tag. Do whatever image manipulation you need to, write it to disk and then load with a simple <img> tag.
trifecta2kAuthor Commented:
I am fully patched.  I tried just using a regular img and my pdf still looks like it's scaling down.
trifecta2kAuthor Commented:
That was it!  Between the pagetype and the css doc I got it to work.  Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.