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.
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>
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)
(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.
ASKER
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...
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?
ASKER
Both code and pdf are attached.
<cfpdfform action="populate" source="cefp2.pdf" destination="newfile.pdf" overwrite="true">
<cfpdfformparam name="CertName" value="Junk ">
</cfpdfform>
cefp2.pdf
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
<cfdump var="#server#">
<cfpdfform action="populate" source="c:\cefp2.pdf" destination="c:\newCF8file
<cfpdfformparam name="CertName" value="Junk ">
</cfpdfform>
newCF8file.pdf
If not, did you verify the "case" of the form/field names match? They may be case sensitive.