We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

cfpdfform not populating livecycle pdfs

Medium Priority
1,325 Views
Last Modified: 2013-12-05
We are trying to populate a pdf that was created in LiveCycle Designer - just with the user's name.

It generates the new PDF but the fieldname CertName isn't filled in.    What am I doing wrong?   I did a dump and the form name is form1 and the fieldname is CertName so that is right...

I also need to make sure the PDF can't be edited afterwards.
<cfpdfform source="d:\cefpfill.pdf" 
    destination="d:\test1231.pdf" action="populate" overwrite="true">
    <cfpdfsubform name="form1">
		<cfpdfformparam name="CertName" value="Jane Smith">
</cfpdfsubform>
</cfpdfform>

Open in new window

Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
Are you flattening the form?  Because flattening livecycle forms with CF isn't allowed (licensing). If you try it, the fields just end up blank.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_02.htmlYou cannot use the cfpdf tag to flatten forms created in Adobe LiveCycle Designer ES.

If not, did you verify the "case" of the form/field names match? They may be case sensitive.

Author

Commented:
The entirety of the code is posted so I am not trying a further flattening.  
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
Hmm, then I'm out of ideas... other than checking the case of your form and field names.

(Unfortunately, even if you get it working you won't be able to flatten it to prevent editing w/CF anyway)
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
If it's just a test/dummy file, attach it here and maybe someone can spot the problem.

Author

Commented:
OK - well then let's address it from another way - I tried making a PDF form using Acrobat Pro 9.    Just a single form field on it.  Nothing fancy.   I get the error message:

The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.

Null Pointers are another name for undefined values.
Platform, Locale, and Platform Name must not be null

The field name is correct - I grabbed it from a cfdump...
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
Those kinds of errors usually have to do w/the pdf rather than CF code. They're hard to diagnose w/out seeing the pdf.  If it's just a sample/test file can you attach it here?

Author

Commented:
Both code and pdf are attached.
<cfpdfform action="populate" source="cefp2.pdf" destination="newfile.pdf" overwrite="true">
		<cfpdfformparam name="CertName" value="Junk ">
</cfpdfform>

Open in new window

cefp2.pdf
CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Ah - I wonder if it is CF8 that is causing the issues...
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
Let me see if I can find a CF8 install and try it there.
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
It worked okay on CF 8,0,1,195765 too

<cfdump var="#server#">
<cfpdfform action="populate" source="c:\cefp2.pdf" destination="c:\newCF8file.pdf" overwrite="true">
   <cfpdfformparam name="CertName" value="Junk ">
</cfpdfform>
newCF8file.pdf
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.