>>Yes you did but I also asked for the PDF in question so that I could run some tests as well, maybe you missed that:-)
I didn't miss it. The content of the pdf has absolutely no interest. I told you it hapened to contain somewhere a string "<cf", the rest making an invalid CF tag. This is enough to cause an error if it is compiled by CF. There is no need to look any further in this file. >>Anyway I have a couple of questions. Now look, I've posted all details here, including the code, if you don't understand it, just forget it. I was using a pdf under a .cfm extension just to force execution of an application.cfm. Once this template is executed, the true pdf file is returned to the requester, there is no need to execute any other template, especialy a pdf file, then it aborts. The customer asked to have times every document was requested to be traced. I know there plenty of other ways to do it, the problem was that the CMS was already designed to generate direct links to the files using the true file name, ie: <A href="myFile.pdf">Title of the file</A>. I didn't want to change the code for <A href="getDoc.cfm?id=#docId#">Title of the file</A>everywhere a document was called. The way I did it, <A href="myFile.pdf.cfm">Title of the file</A> had the advantage to be compatible with documents previously uploaded in the system, without having to change any thing in the database structure nor in the existing pages. Only the new document would be counted. I now know that there is rare cases it won't work, I'm rewriting the module differently, and I need the help of nobody to do it, thanks anyway. I was just asking a question here, not help. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345735 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm