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

Author: Kera Shaktirg
Country: Ecuador
Language: English (Spanish)
Genre: Spiritual
Published (Last): 13 January 2009
Pages: 187
PDF File Size: 5.52 Mb
ePub File Size: 6.13 Mb
ISBN: 449-7-41670-478-9
Downloads: 98999
Price: Free* [*Free Regsitration Required]
Uploader: Turamar

Post Your Answer Discard 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. Otherwise, just omit filename from your cfdocument call.

coldfusion – Opening PDF file after creating CFDocument – Stack Overflow

Filesize was cffocument too large for some reason. If your page has created any other output, don’t forget the Reset attribute as well: I’m afraid I didn’t answer your question in a way that points you in one direction. Thanks for all of these comments, it really helped me.

This NAME attribute is simply an interesting alternative. Sign up or log in Sign up using Google.

So my first bit of advice is to try your best to embed images with a width and height parameter and “pre-process” the images so they can be used “as is” in the PDF file. I allow the user to drill down from Chart1 to Chart2. It worked for me! That all works fine when displaying the questions and answers to the screen.


This might help someone. OK, I have confirmed now more specifics, about whether this issue is about “commercial” us This “encapsulation” principle of a PDF file has implications for Cfdocument.

The site is running on CF11 and I’m developing on CF, which is what they are moving to next month. Not only that, Cfdocument must embed the contents of the file into the document – not merely a pointer to be handled by the browser. That’s not obvious from your question. When trying to output to MS Excel I get an error. I’m back with a question, although it is not directly related to performance, so if I should post this someplace else please let me know. Please turn JavaScript back on and reload this page.

This tool uses JavaScript and much of it will not work correctly without it enabled. Things get more complicated when the item is nested. This works a treat. How did you get to the bottom of this! To get the latest PDF viewer, visit http: The first release of CF 7 pre-Merrimack had a significant bug when trying to render an image. If you don’t embed them, then the PDF will display with whatever fonts the user has installed.

After creating a cfdocument and storing it in my file directory above. I am creating the files for Chart1 and Chart2 exactly the same, so I don’t understand why one is working and one isn’t. We have the latest hot fixes in place The content however is fine because when I save it with extension.


These classes often must resample the image using methods that maintain perspective, but change the dpi. This may not be news to some, but it was to me. If any would ask, “but what about spreadsheets? What you see on the page is generally a result of many separate http requestsnot just the one that called the page. The page cfdoument hangs waiting for a response, it appears.

I know this is an old postso from the CF9 timeframe. Since it is my blog, we might as well work from my crdocument Post as a guest Name.

Differences between cfdocument and cfhtmltopdf

Be sure to explain to others what you mean, exactly is it a PDF of tabular data? A print document can’t “expand or contract” based on the user environment. Access on 64bit ColdFusion? Andd, after you answer, I am going to move this out to a new blog entry.

I have a site where users can fill out reports. I save the chart as a. Take the example of an image embedded in a document. You can not post a blank message.

I missed a critical line in mycopy-n-paste.

Differences between cfdocument and cfhtmltopdf

How is this accomplished? What should the format attribute of the ctdocument tag be set to? Jon you’re a star! Cfdocument is a new weapon in the Coldfusion arsenal.

Set margins that make sense.