No dice. I tried with the doctype and html element outside CFDOCUMENT
and inside. I even popped a <cfcontent reset="yes"> before it to make
sure my framework code wasn't enforcing a layout on it. Still nothing.
Viewing the output as HTML my background image is there, but CFDOCUMENT
refuses to use it.

I'm giving up. The client will have to be satisfied with the word
"DRAFT" in text at the bottom of every page. I have too many other
defects I need to be working on.

Thanks all for your help.

-----Original Message-----
From: Sandra Clark [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 5:51 PM
To: CF-Talk
Subject: RE: Creating a watermark for CFDOCUMENT

I got something working with the following code, the information shows
up in the PDF.  Media style will mean nothing to PDF, it can only print
what it shows.  Notice that the cfdocument must surround both the <head>
and <body> tags.  It won't work if you just surround the body or the
information within the body.  (In other words, you must use proper
markup (style belongs in the
<head>) and send all of that to the pdf.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
        
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<cfdocument  format="PDF" pagetype="letter" orientation="portrait"
unit="in"
encryption="none" 
fontembed="Yes" backgroundvisible="Yes">

<head>
        <title></title>
        <style type="text/css">
        
        body{
                background-image: url(hdr_right.jpg);
                background-position: top right;
                background-repeat: no-repeat;
                height: 11in;
                width: 8.5in;
                padding: .5in;

        }
        </style>
</head>
<body>
<h1> This is a test</h1>
</body></cfdocument>
</html>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246533
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to