Link to home
Start Free TrialLog in
Avatar of digitalwise
digitalwise

asked on

cfpdfform not populating livecycle pdfs

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

Avatar of _agx_
_agx_
Flag of United States of America image

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.
Avatar of digitalwise
digitalwise

ASKER

The entirety of the code is posted so I am not trying a further flattening.  
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)
If it's just a test/dummy file, attach it here and maybe someone can spot the problem.
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...
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?
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
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ah - I wonder if it is CF8 that is causing the issues...
Let me see if I can find a CF8 install and try it there.
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