[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

cfpdfform not populating livecycle pdfs

Posted on 2011-04-28
11
Medium Priority
?
1,223 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

0
Comment
Question by:digitalwise
  • 7
  • 4
11 Comments
 
LVL 52

Expert Comment

by:_agx_
ID: 35488837
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.
0
 

Author Comment

by:digitalwise
ID: 35490454
The entirety of the code is posted so I am not trying a further flattening.  
0
 
LVL 52

Expert Comment

by:_agx_
ID: 35493079
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)
0
Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

 
LVL 52

Expert Comment

by:_agx_
ID: 35493272
If it's just a test/dummy file, attach it here and maybe someone can spot the problem.
0
 

Author Comment

by:digitalwise
ID: 35494075
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...
0
 
LVL 52

Expert Comment

by:_agx_
ID: 35494319
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?
0
 

Author Comment

by:digitalwise
ID: 35494791
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
0
 
LVL 52

Accepted Solution

by:
_agx_ earned 2000 total points
ID: 35494832
Works perfectly w/9,0,1,274733. No change other than the file paths.

<cfpdfform action="populate" source="c:\cefp2.pdf" destination="c:\newfile.pdf" overwrite="true">
   <cfpdfformparam name="CertName" value="Junk ">
</cfpdfform>
<cfdump var="#server#" label="Server Version">

newfile.pdf
0
 

Author Comment

by:digitalwise
ID: 35495358
Ah - I wonder if it is CF8 that is causing the issues...
0
 
LVL 52

Expert Comment

by:_agx_
ID: 35495633
Let me see if I can find a CF8 install and try it there.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 35495643
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
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…
Suggested Courses
Course of the Month18 days, 14 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question