Here's the situation: we have a development server that appears to be broken, it has ActivePDF installed and it will not generate PDF documents using code we know works.
The person responsible for maintaining the server asked that my team test the application locally before he looks into the problem. We downloaded a copy of CF MX from Macromedia.com, installed it, and the whole application broke.
The version of CF installed on the dev server is 6,1,0,63958, which is CF MX 6.1. The version of CF we downloaded from MM's site is 6,0,0,48097, which is plain CF MX. In order to get the application to run, I took a lot of var statements out of CFSCRIPT tags within functions and had to do a couple of other things.
Now the problem is the local install of CF will not generate PDF documents either. We are using code that has previously been tested and is known to work properly (i.e. it was generating PDF documents). There have been no changes to any data the application touches, and (except for the CF version) the dev server and the local server use identical software.
I am wondering if there could be some difference between the way CF MX and CF MX 6.1 function that could be preventing the creating of PDF documents? It will take some doing to get the actual CF server install disk (which appears to be my only way to upgrade to CF MX 6.1) and I would rather avoid the hassle if I do not have to go through it.
Below is a sample of the code that generates the PDF, and thanks in advance for everyone's thoughts:
<snip>
<cfscript>
lookup = CreateComponent("com.lookup.Lookup");
obj = CreateComponent("com.travel.TrkReq");
stCond = StructNew();
stCond.TRKEY = Attributes.ReqID;
qryRow = obj.getData(0,0,stCond);
cr = "#CHR(10)##CHR(13)#";
PDF = CreateObject("COM","APToolkit.Object");
r = PDF.OpenOutputFile("MEMORY");
r = PDF.OpenInputFile(Application.Config.BaseDirectory & "templates/travel_request_form.pdf");
// Lots and lots of business logic
PDF.CloseOutputFile();
bArr = PDF.binaryImage;
</cfscript>
<cfheader name="content-disposition" value="inline; filename=temp.pdf">
<cfsetting enablecfoutputonly="yes" showdebugoutput="no">
<cfcontent type="application/pdf" reset="yes">
<cfoutput>#ToString(bArr)#</cfoutput>
<cfsetting enablecfoutputonly="no">
<cfabort>
</snip>
M
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

