David,

CSS needs to inlined for use within the PDF functions.

Have you tried using cfinclude within a style tag to include you CSS?

Matthew



David Aaron Fendley <mailto:[email protected]>
14 September 2014 01:14
I should note that I did set `localurl="yes"` as well.


On Saturday, September 13, 2014 5:12:13 PM UTC-7, David Aaron Fendley wrote:
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
David Aaron Fendley <mailto:[email protected]>
14 September 2014 01:12
I am struggling to get CFDOCUMENT to apply CSS other than inline.

I've tried the following:

||
<cfdocumentformat="pdf">
<?xml version="1.0"encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<htmlxmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>Invoice</title>

<styletype="text/css"media="screen">
.invoice-id {
        font-weight:bold;
        font-size:14pt;
}

.invoice-date {
        font-size:10pt;
}

.invoice-date span {
        font-weight:bold;
}

.header-line {
        border-bottom:3pxsolid #a32322;
        line-height:1px;
        font-size:1pt;
        height:1pt;
        margin:0px;
        padding:0px;
}
</style>
</head>

<body>
<divid="header">
<tablewidth="100%">
<tr>
<tdnowrap="nowrap">
<cfoutput>
<divclass="invoice-id">Invoice</div>
<divclass="invoice-date"><span>Date:</span>#dateformat(now(),'mmmm d, yyyy')#</div> <divstyle="text-transform:capitalize;font-weight:bold;font-size:13pt;">Client Name</div>
</cfoutput>
</td>
<tdalign="right">
<cfoutput>#ExpandPath('../media/images/logo.emf')#</cfoutput>
<imgsrc=""width="112"height="60"alt="logo"/>
</td>
</tr>
</table>
<divclass="header-line">&nbsp;</div>
</div>
</body>
</html>
</cfdocument>


---

||
<cfdocumentformat="pdf">
<?xml version="1.0"encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<htmlxmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>Invoice</title>

<cfoutput>
<styletype="text/css"media="screen">
@importurl("#ExpandPath('invoice.css')#");
</style>
</cfoutput>
</head>

<body>
<divid="header">
<tablewidth="100%">
<tr>
<tdnowrap="nowrap">
<cfoutput>
<divclass="invoice-id">Invoice</div>
<divclass="invoice-date"><span>Date:</span>#dateformat(now(),'mmmm d, yyyy')#</div> <divstyle="text-transform:capitalize;font-weight:bold;font-size:13pt;">Client Name</div>
</cfoutput>
</td>
<tdalign="right">
<cfoutput>#ExpandPath('../media/images/logo.emf')#</cfoutput>
<imgsrc=""width="112"height="60"alt="logo"/>
</td>
</tr>
</table>
<divclass="header-line">&nbsp;</div>
</div>
</body>
</html>
</cfdocument>


---
||
<cfdocumentformat="pdf">
<?xml version="1.0"encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<htmlxmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>Invoice</title>

<cfoutput>
<linkrel="stylesheet"href="#ExpandPath('invoice.css')#"type="text/css"media="screen"title="no title"charset="utf-8"/>
</cfoutput>
</head>

<body>
<divid="header">
<tablewidth="100%">
<tr>
<tdnowrap="nowrap">
<cfoutput>
<divclass="invoice-id">Invoice</div>
<divclass="invoice-date"><span>Date:</span>#dateformat(now(),'mmmm d, yyyy')#</div> <divstyle="text-transform:capitalize;font-weight:bold;font-size:13pt;">Client Name</div>
</cfoutput>
</td>
<tdalign="right">
<cfoutput>#ExpandPath('../media/images/logo.emf')#</cfoutput>
<imgsrc=""width="112"height="60"alt="logo"/>
</td>
</tr>
</table>
<divclass="header-line">&nbsp;</div>
</div>
</body>
</html>
</cfdocument>


Ideas?
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

--- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to