Change to:  <cfdocument format="pdf" filename="c:\test.pdf">


Then try to open it.  Also, ensure you have the PDF reader installed as
a plugin, or you will get gibberish as well =)

Chris
-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 18, 2007 11:34 AM
To: CF-Talk
Subject: Re: CFDOCUMENT creating a PDF - ARGH!

OK, so I'm trying it like this now:

If I remove the CFDOCUMENT tag, the file renders exactly the way I want.
   Put it back in, I get a page of gibberish.


------ START TEMPLATE ---------

- - - QUERIES HERE  - - -

<cfdocument format="pdf">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
<!--
CSS HERE
-->
</style>

</head>

<body>

<div id="PDFpage">

<img src="http://www.MYSITE.com/imgPDF/pdfHEADER.gif"; width="544"
height="200" />

<cfoutput query="makePDF">

MY OUTPUT STUFF HERE...

</cfoutput>

</div>

</body>
</html>

</cfdocument>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295023
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to