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

Generating a PDF

$
0
0
I am attempting to generate a pretty simple PDF document. It worked yesterday on a production server and it doesn't work today. It works on my development machine still though. In production I get the dreaded "File does not begin with '%PDF-'". Any idea on why this would fail???

Here is my code to generate the PDF... Oh and if I comment out the CFDOCUMENT stuff the page loads just fine so I know it is not a data retrieval issue...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Pleadings Form</title>
</head>

<BODY>
<CFQUERY NAME="GetClaimantInfo" DATASOURCE="#Request.dsn#">
SELECT LName
FROM Claimants
WHERE ClaimCnt = #Form.MyClaimCnt#
</CFQUERY>

<CFSET MyClNum = LEFT(Form.MyClaimNum, 4) & '-' & RIGHT(Form.MyClaimNum, 4)>
<cfdocument format="pdf" marginleft="1.0" marginright="1.0" marginbottom="0.7" margintop="1.0" unit="IN">
<TABLE cellpadding="0" cellspacing="0" border="0" width="100%">
<TR>
<TD WIDTH="100"><span style="font-size:10.0pt;font-family:Arial;color:black;font:bold;text- decoration:underline;">PLEADINGS:</span></TD>
<TD ALIGN="right"><span style="font-size:10.0pt;font-family:Arial;color:black;font:bold;">CLA IM NO:<CFOUTPUT>#MyClNum#</CFOUTPUT></span></TD>
</TR>
<TR>
<TD><IMG SRC="/ISIF/images/shim.gif" WIDTH="1" height="1"></TD>
<TD ALIGN="right"><span style="font-size:10.0pt;font-family:Arial;color:black;font:bold;">CLA IMANT NAME:<CFOUTPUT>#GetClaimantInfo.LName#</CFOUTPUT></span></TD>
</TR>
<TR>
<TD COLSPAN="2" HEIGHT="10"><IMG SRC="/ISIF/images/shim.gif" WIDTH="1" height="1"></TD>
</TR>
<TR>
<TD><span style="font-size:10.0pt;font-family:Arial;color:black;font:bold;">DAT E:</span></TD>
<TD><span style="font-size:10.0pt;font-family:Arial;color:black;font:bold;">TIT LE:</span></TD>
</TR>
</TABLE>
<TABLE cellpadding="0" cellspacing="0" border="1" BORDERCOLOR="#000000" width="100%">
<CFLOOP FROM="1" TO="28" INDEX="xx">
<TR>
<TD HEIGHT="30" WIDTH="100"><IMG SRC="/ISIF/images/shim.gif" WIDTH="40" height="1"></TD>
<TD><IMG SRC="/ISIF/images/shim.gif" WIDTH="1" height="1"></TD>
</TR>
</CFLOOP>
</TABLE>
</CFDOCUMENT>
</body>
</html>

Thanks in advance for the help...
KomputerMan ~|:-)


Viewing all articles
Browse latest Browse all 38309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>