Quantcast
Channel: Adobe Community : Popular Discussions - Reporting
Viewing all articles
Browse latest Browse all 38309

CFDOCUMENT

$
0
0
I am using cfdocument's ability to generate PDF documents from XHTLM 1.0 Transitional webpages. I using supported CSS styles to format the page by importing the style sheet. All styles with the exception of text-align:justified work perfectly. Does anyone have any ideas on how to get this working?

Code Sample of doc...

<!--- cfdocument pdf attribute collection --->
<cfset pdfdef = structNew()>
<cfset pdfdef.format = "PDF">
<cfset pdfdef.orientation = "portrait">
<cfset pdfdef.pageType = "letter">
<cfset pdfdef.mimeType = "text/html">
<cfset pdfdef.pageType = "letter">
<cfset pdfdef.encryption = "40-bit">
<cfset pdfdef.ownerPassword = "arsiarsi">
<cfset pdfdef.marginLeft = 1>
<cfset pdfdef.marginRight = 1>
<cfset pdfdef.marginTop = 1>
<cfset pdfdef.marginBottom = 1>
<cfset pdfdef.permissions = "AllowPrinting,AllowDegradedPrinting">


<!--- Generate PDF report --->
<cfdocument attributeCollection="#pdfdef#">

<!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>AZCF</title>

<!--- Link to Waivers.css for formating --->
<style type="text/css">
<!--
@import url("waivers.css");
-->
</style>

</head>

<body>
<p>A paragraph</p>
</body>

</html>

</cfdocument>

Code sample of Style Sheet...
@charset "utf-8";
/* CSS Document */

p {
width: 600px;
text-indent: 0.25in;
text-align: justify;
font-family: Verdana, Arial;
font-size: 11px;
line-height:2em;
}
td {
font-family: Verdana, Arial;
font-size: 11px;
}
th {
font-family: Verdana, Arial;
font-size: 14px;
}
.cliHead {
font-family: Verdana, Arial;
font-size: 12px;
color: #003366;
font-weight: normal;
}
.cliHeadBold {
font-weight: bold;
}
.labels {
font-style: italic;
font-weight: bold;
font-size: 9px;
}
.disclaimBox {
font-weight: bold;
text-indent: 0px;
border: thin solid #000000;
padding: 2px;
line-height: normal;
}

Thanks for the help in advanced and I will be sure to come back and help another!

Martin Franklin

Viewing all articles
Browse latest Browse all 38309

Trending Articles