If you really need to save it to a file and display it in the browser, use cfcontent with the file attribute.

Author: Fauk Vitaxe
Country: Mongolia
Language: English (Spanish)
Genre: Science
Published (Last): 28 December 2008
Pages: 269
PDF File Size: 1.63 Mb
ePub File Size: 12.80 Mb
ISBN: 224-9-41038-958-5
Downloads: 19163
Price: Free* [*Free Regsitration Required]
Uploader: Sabei

I didn’t write this code you know. That’s what I meant by the point I made under ‘why might you do this? Great to hear, Mike. We have the latest hot fixes in place Hope the resources offered may help. The image is rendered correctly. This NAME attribute is simply an interesting alternative. Now consider, in the example above, how does CF knows where the file is? You can not post a blank message.

Differences between cfdocument and cfhtmltopdf

If the feature interests you, I’d recommend you report it to them as a bug. Have you tried putting the content within canonicalize? Sorry to have to play traffic cop.

Then it determines the width cfdocumennt the item in question relative to that original value. Why does this impact performance? Thank you, I can’t recommend it enough. Not only that, Cfdocument must embed the contents of the file into the document – not merely a pointer to be handled by the browser.


Discussion – ColdFusion

If any would ask, “but what about spreadsheets? January 13, Use Coldfusion rereplace and replace functions to change the filename to something that doesnt have spaces or special characters. I use the same methodology for Chart2.

Anyone else have problems like this? Then you could manage that cached result any of the many ways that have long existed for caching other tag results in shared scope variables.

Anyone else having similar problems? By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies. However, the user also has the option to save the report as a pdf.

This may not be news to some, but it was to me. The same scenario may be drawn for CSS files, movies, charts, fonts etc. A slow cfdocumenh at the other end of a cfhttp request even your own server could cause a hanging thread while Cfdocument waits for the contents of that file.

Correct Answers – 10 points.

ColdFusion Muse: Cfdocument and Performance

After creating a cfdocument and storing it in my file directory above. The only exceptions are fonts. Jon you’re a star! That is very handy. When it comes to performance, however, there are dfdocument number of things to keep in mind.


I had a reason today to test this workaround on ColdFusion If it has blank or special characters, it will cause this behavior. I did some searching and found an explanation of it that suggests it can be any string so folks can either create such a variable or modify the 4 places it’s used within. But Cfdocument doesn’t have that option. It’s just not germane to the topic of the entry.

When the page is received by the browser it does a “catalog” of all the resources needed to render that page. Thanks for all of these comments, it really helped me.

I wish they would let us round. Thanks for all this info. This content has been marked as final. Sign up or log in Sign up using Google. I think it’s too important for folks to miss as many, even Adobe folks, have said “it can’t be done”. In other words, they are mangling the file a bit to make it work in the new format. How is this accomplished?

Enter your email address to subscribe to this blog. The point is that you may do something between when you create the variable and when you output it.