Hello all,
I'm trying to generate a PDF with cfdocument in CF7
It generates the PDF, and has the content, but the css styles do not come across, see code
<cfdocument
name="taxInvoicePDF"
format="PDF"
pagetype="A4"
orientation="portrait"
permissions="allowprinting"
encryption="40-bit"
overwrite="no"
fontembed="yes">
<cfdocumentsection>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Tax invoice</title>
<cfoutput>
<link rel="stylesheet" href="#application.web.root#/_resource/style/default.css" type="text/css" media="print">
<link rel="stylesheet" href="#application.web.root#/_resource/style/invoices/print.css" type="text/css" media="print">
<link rel="stylesheet" href="#application.web.root#/_resource/style/typography/default.css" type="text/css" media="print">
<link rel="stylesheet" href="#application.web.root#/_resource/style/typography/generic.css" type="text/css" media="print">
</cfoutput>
<style>
@media print {
div#cc{
display:none;
}
}
</style>
</head>
<body>
<cfinclude template="#application.root#/_resource/include/inc_tax-invoice.cfm">
</body>
</html>
</cfdocumentsection>
</cfdocument>
Even the inline style doesn't come across, I have no idea why not.
Thanks in advance for any help.
--
***
http://www.clickfind.com.au The new Australian search engine for businesses, products and services
*** Virtual and Dedicated Servers with MS SQL from $250 a month
*** Virtual and Dedicated Servers with registered version of ColdFusion from $350 a month
*** ColdFusion licenses at the lowest price