Skip to main content
June 10, 2008
Question

View in PDF format

  • June 10, 2008
  • 4 replies
  • 426 views
I have tried to view a .cfm page in PDF format. I get data from a CFC, and show information in the .cfm page. The problem that, when I used cfdocument with PDF format, I received a web page didn't match with PDF format. Anyone can help me solve this problem. I think this isn't big prolem, but I just a beginner with coldfusion.
    This topic has been closed for replies.

    4 replies

    June 13, 2008
    Many thanks for your help. I tried your suggestion. But I carried out a problem that the CSS for HTML page is not correct in PDF format. I'm trying to solve this problem. I hope I still receive your help.
    Inspiring
    June 12, 2008
    use cfsavecontent to put the display stuff into a session variable. Then use that variable in a cfdocument tag on the page that's supposed to show the pdf.
    June 12, 2008
    No, didn't. I meant that I have a cfm page that have a button named showPDF. When I click on this button, the result I except is PDF format of this page. Information of this cfm page I got from a function in a CFC. That's all. Unfortunately, I don't success yet.
    Inspiring
    June 10, 2008
    Are you saying that you used a cfdocument tag and your page came back as html?