Hi all,
My app just got moved to a Linux/Unix box and as a result, now my cfdocument
has stopped working properly. Basically, I have output that is saved to a
variable with <cfsavecontent> and then it is displayed to the screen. However,
if the user so chooses, they can have the output sent to a PDF instead. I have
the code below to force the page to load as a PDF instead. Please be aware,
this worked just fine in Windows environment, the only thing changed is that
the app has been moved to unix/linux. What happens now is that the request
just simply times out (on the <cfoutput>#sReportContent#</cfoutput> line). Any
ideas?
Dave
<cfdocument format="pdf"
filename="#expandPath('tempfiles/' & sReportName &
'.pdf')#"
overwrite="true"
orientation="landscape"
scale="100"
pagewidth="10.5"
pageheight="8"
margintop=".25"
marginbottom=".25"
marginleft=".25"
marginright=".25"
>
<html>
<head>
<LINK REL="StyleSheet" HREF="assets/styles/global.css"
TYPE="text/css" >
<!--- adding this style below will keep the PDF from
generating an extra blank page --->
<style>
body, html { height: auto; }
</style>
</head>
<body>
<cfoutput>#sReportContent#</cfoutput>
</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;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302852
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4