Ask a Jedi: CFC Results to PDF/Flash Paper

Thinman asks:

Can a CFC be coded to to save query results in FlahsPaper and PDF Format?

This question can be read multiple ways, so I’m not exactly sure how to answer, but I’ll do my best. First off - unrelated to CFCs - when you use cfdocument you can store the results instead of actually displaying it. All you need to do is use the name attribute. This stores the binary data in a variable. So can a CFC do this, sure? You could also have the CFC output the data as well, so for example, you could have a dynamic link to a PDF version of a page by linking to:


I don’t normally output directly from a CFC, but you certainly could if you wanted.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA