0 Replies Latest reply on Nov 7, 2006 8:57 AM by CF_contractor

    dynamically filling PDF with XPAAJ

    CF_contractor
      I am trying to fill a pdf dynamically using the XML/PDF Access API referenced in Ben Forta's blog here.
      http://www.forta.com/blog/index.cfm/2006/7/27/cf_pdfform. Using MX 7 I get no errors, but on the client's server I get the following message "The argument XMLDATA passed to function SetPDFFormFields() is not of type xml." Here is my code.

      <cfset pdfForm=ExpandPath("rusty_test1.pdf")>
      <!--- Output PDF name --->
      <cfset pdfResult=ExpandPath("test.pdf")>

      <!--- Generate filled in form --->
      <cf_pdfform action="set"
      form="#pdfForm#"
      destination="#pdfResult#">

      <cf_pdfformparam name="PLAN_NAME" value="#qry_detail.PLanName#">

      <cf_pdfformparam name="SPONS_DFE_PN" value="#qry_detail.SPONSDFEPN#">
      <cf_pdfformparam name="SPONS_DFE_NAME" value="#qry_detail.SPONSDFENAME#">


      </cf_pdfform>

      <cfcontent file="#pdfResult#"
      type="application/pdf"
      reset="yes"
      deletefile="yes">