title: ColdFusion: how to populate livecycle pdf section dynamically using query data
body: <p>I have a template PDF that has a section that will be laid out like a table.  The data will come from a query.  So this table will be dynamic, number of rows unknown.</p>
  
  <p>How do I accomplish this using ColdFusion?  Is it a combination of creating a template using LiveCycle and creating this section so it is dynamic and then using CFPDF to populate it.</p>
  
  <p>Right now I'm using  to populate static fields.  </p>
  
  <pre><code>&lt;cfpdfform source="Template.pdf"
     destination="Template2.pdf" action="populate"&gt;
     &lt;cfpdfsubform name="form1"&gt;
      &lt;cfpdfformparam name="pdf_controlNum" value="123"&gt;
      &lt;cfpdfformparam name="pdf_ReportDate" value="05/01/2012"&gt;
     &lt;/cfpdfsubform&gt;
  &lt;/cfpdfform&gt;
  </code></pre>