Hmmm...I didn't include all of the HTML elements. I'll try that. 

-----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>

Sandra Clark

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:246525
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to