0 Replies Latest reply on Sep 13, 2008 7:58 AM by sbsmithfl

    Need Help with this PDF generation

    sbsmithfl Level 1
      Greetings,
      Our company had a subcontractor (that is no longer available) create a small system for a client that allows the client to input some text in a flash form, and the system places the text at a certain spot on a previosly created PDF document. For 80% of the users, this works perfectly and then can print and save the customized pdf document. For 20% of users, they can see and print the customized pdf, but when they save it, there is no customization (area is blank). Can anyone help us understand why this happens, and how to fix?

      HERE ARE DIRECT NOTES FROM OUR CLIENT:
      *************
      Users are able to input their customized info.
      The customized info shows up in the PDF on the brochure.
      Users can print the brochure with the customized info.
      Users can save the BLANK PDF (without their info)
      Users can NOT save the PDF with their info in it.

      The exact message is in the top of the window with the PDF brochure and says "please fill out the following form. You can not save data typed into this form. Please print your completed form if you would like a copy for your records."
      ******************

      Here is the input form, feel free to test.

      When you input into the brochure1.cfm Form, it sends the data to http://www.caduceuswebs.net/brochure1output.cfm , which then spanwns the customized pdf to open.

      If you want to see the native pdf, it is here: CLICK HERE

      HERE IS THE CODE FOR BROCHURE1.CFM

      <CFFORM ACTION="brochure1output.cfm" METHOD="POST" ENABLECAB="YES" format="flash" width="470" height="550">
      <div align="center">
      <table width="470" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#990066">
      <tr>
      <td><cfinput type="TEXT" name="name" id="name" label="Name" maxlength="60"></td>
      </tr>
      <tr>
      <td><CFINPUT TYPE="TEXT" NAME="address1" id="address1" label="Address" hspace="470">
      </P></td>
      </tr>
      <tr>
      <td><CFinput type="text" name="address2" id="address2" label="Address Cont." /></td>
      </tr>
      <tr>
      <td><CFinput type="text" name="state" id="state" label="City / State"/></td>
      </tr>
      <tr>
      <td><CFinput type="text" name="zip" id="zip" label="Zip Code"/></td>
      </tr>
      <tr>
      <td><CFinput type="text" name="phone" id="phone" label="Phone Number"/></td>
      </tr>
      <tr>
      <td><table width="470" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <td width="100"><img src="img/transparent.gif" width="100" height="1" border="0" /></td>
      <td width="373"><cfinput type="SUBMIT" value="Generate Customized Brochure 1" name="Submit"></td>
      </tr>
      </table></td>
      </tr>
      </table>
      </div>
      </CFFORM>



      HERE IS THE CODE FOR BROCHURE1OUTPUT.CFM:

      <CFOUTPUT><CFSET date="#DateFormat(now())#"></CFOUTPUT>
      <CFSETTING ENABLECFOUTPUTONLY="YES" SHOWDEBUGOUTPUT="NO">
      <CFCONTENT TYPE="APPLICATION/vnd.fdf">
      <CFOUTPUT>%FDF-1.2
      1 0 obj <<
      /FDF <<
      /Fields
      [
      <<
      /T(name)
      /V(#form.name#)
      >>
      <<
      /T(address1)
      /V(#form.address1#)
      >>
      <<
      /T(address2)
      /V(#form.address2#)
      >>
      <<
      /T(state)
      /V(#form.state#)
      >>
      <<
      /T(zip)
      /V(#form.zip#)
      >>
      <<
      /T(phone)
      /V(#form.phone#)
      >>
      ]
      /F( http://www.caduceuswebs.net/pdfs/brochure1.pdf)
      >>
      >>
      endobj
      trailer
      <</Root 1 0 R>>
      %%EOF
      </CFOUTPUT>