Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6749153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:39:21+00:00 2026-05-26T12:39:21+00:00

How can dynamic HTML be put into a PDF using ColdFusion? This is in

  • 0

How can dynamic HTML be put into a PDF using ColdFusion?

This is in relation to my question about getting IE to work properly with a CFDIV.

What I am trying to do is something similar to this

<cfdocument 
name="table"
format="PDF"> 
foo
<cfdiv id="content" bind="cfc:TestCFC.displayTable({filters})"></cfdiv>
bar
</cfdocument>

however when I open my PDF document, I only see

foo
bar

I would like a solution that uses the CFDIV with the bind, however if that is not an option than any solution will do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:39:21+00:00Added an answer on May 26, 2026 at 12:39 pm

    You can’t use bind parameters for pdfs because the bind parameters are executed via AJAX on the client. You’ll need to do something like this instead:

    <cfdocument name="table" format="PDF"> 
    foo
    <cfdiv id="content"><cfoutput>#TestCFC.displayTable({filters})#</cfoutput></cfdiv>
    bar
    </cfdocument>
    

    And you’ll need to get the filters argument in there via some other method than a bind to another element. Possibly a FORM or URL variable when the user clicks the link or button to generate the PDF.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can dynamic variables in C# 4.0 be members on a class or passed into
How can dynamic Key-value pairs of objects be stored in app.config in using the
How can dynamic breadcrumbs be achieved with ASP.net MVC? If you are curious about
Can I use dynamic data type in WF 4.0? And if this is possible
I'm developing a dynamic html pop-up window (an absolute positioned div) using jQuery that
I have a question about complex views in ASP.NET MVC. Where can I find
Sorry, I am still new using jquery so this might be an easy question.
I need to create a dynamic html table using PHP after parsing a JSON
I have custom Question objects which I render into html form elements. I want
i was trying to print dynamic div html element using printElement() function but when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.