Skip to main content
July 25, 2011
Answered

cfpdfform read returns empty structure, no form fields

  • July 25, 2011
  • 1 reply
  • 1025 views

Hello,

I'm attempting to read a pdf file created with LiveCycle 9.  After validating the file is PDF, I perform a 'cfpdf read' and then a 'cfpdfform read'.  I receive an empty structure for the 'cfpdfform read'.  My output is below.  The first dump is from the 'cfpdf read' command.  The empty structure from the 'cfpdfform read' follows.  Any ideas why the 'cfpdfform read' does not see the form fields?

Thanks

--------- output from code ------------

This is a valid PDF file.

PDFDocument
ApplicationAdobe LiveCycle Designer ES 9.0
AuthorBarb Mack
CenterWindowOnScreen[empty string]
ChangingDocumentAllowed
CommentingAllowed
ContentExtractionAllowed
CopyContentAllowed
CreatedD:20110329145312-05'00'
DocumentAssemblyAllowed
EncryptionNo Security
FilePath[empty string]
FillingFormAllowed
FitToWindow[empty string]
HideMenubar[empty string]
HideToolbar[empty string]
HideWindowUI[empty string]
Keywords[empty string]
Language[empty string]
ModifiedD:20110331165819-05'00'
PageLayoutSinglePage
PageRotations
PDFDocumentarray
10
PageSizes
PDFDocumentarray
1
PDFDocument - struct
height792
width612
PrintingAllowed
ProducerAdobe LiveCycle Designer ES 9.0
Properties[]
SecureAllowed
ShowDocumentsOption[empty string]
ShowWindowsOption[empty string]
SigningAllowed
SubjectDMS Sales Order Quote
TitleDMS Quote
TotalPages1
Trapped[empty string]
Version1.7(Extensions: {/ADBE={/ExtensionLevel=3, /BaseVersion=1.7}})

This is the output from reading the form

struct [empty]


-------------------------------------------

Form fields from LiveCycle:

    This topic has been closed for replies.
    Correct answer

    Thank you very much.  Your answer is exactly right.  I did figure out how to prepopulate the form also.  Your help is much appreciated.

    1 reply

    Participant
    October 28, 2011

    I ran into a similar problem and discovered that there are two different ways to save a PDF in LiveCycle, as an Adobe Static PDF Form or as an Adobe Dynamic XML Form. Only the Adobe Static PDF form can be read and have it's structure displayed. I also discovered that you can't prepopulate the form unless you have the parameter overwriteData = "yes" in your cfpdfform populate statement. I know it's been a while since you posted but the information I found took a long time to discover and seems to be related to your issue.

    Correct answer
    October 28, 2011

    Thank you very much.  Your answer is exactly right.  I did figure out how to prepopulate the form also.  Your help is much appreciated.