Copy link to clipboard
Copied
Is there a way for Acrobat Pro (I'm current at 8.1.2) to convert a (static) XFA Form into the old AcroForm format? I have a large static XFA form (created in LiveCycle Designer), but the Java API that I'm using to pre-populate some values currently works only with the AcroForm format.
FYI, there are two "informal workarounds" to be found on the net, but I can't get either of these to work in Acrobat Pro 8:
o From Carl Young: "Create PDF -> From Web Page"; select the XFA form instead of a web page; Acrobats web page conversion tool would turn the XML inside the Designer form to a regular PDF. Only works in Acrobat 7.
o From Ted Padova: "Document->Extract Pages" (static XFA only). This option is always grayed-out on any static XFA form I create.
So unless there are other suggestions out there, would you say that my best option for an immediate solution is to track down a copy of Acrobat 7 and use that? I've tried creating an AcroForm manually with Acrobat Pro's "Tools->Forms->Text Field Tool"/etc, but it's very, very difficult to replicate all the form field config and layout we did in LiveCycle. Having to do that might force us to abandon PDF forms altogether.
Thanks very much for any suggestions!
Regards,
-Peter Demling
Lexington, MA
1 Correct answer
A PDF without form fields – which is what you have when you “print to PDF” is NOT an AcroForm!! An AcroForm uses live/interactive form fields as defined in ISO 32000-1:2008.
Second, this process is EXTREMELY LOSSY! Not only to the form itself – losing all business rules, etc – but to the PDF, since Chrome’s PDF creation engine doesn’t support all the possible features of a PDF (or XFA-based PDF).
Copy link to clipboard
Copied
However, you can use various programming libraries (including the one that you are already using on this project) to simply remove the XFA from the PDF leaving the rest of the document intact.
Leonard
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Use a tool that can view and edit the internals of a "static" LiveCycle PDF form (i.e. Windjack's PDFCanOpener).
Delete the XFA dictionary
Do a SaveAs to a new form name.
Close the form
Re-open the form and then you should be able to edit the form with the Acroform tools.
Note: This WILL NOT work with dynamic forms.
Sabian
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Leonard
Copy link to clipboard
Copied
Understood but I thought that it was worth mentioning the hack.
Sabian
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
XFA PDFs contain an AcroForm dictionary at the Cos level, but they are not accessible in the same way as AcroForm fields are.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi,
I was also looking for same and reached a easy solution u can try this out
Follow these simple steps:-
1.Drag and drop it xfa format PDF into chrome ,it will open in chrome browser.
2.You will find three options at right corner
Rotate clockwise
Download
3.click on print
4.Change destination "save as PDF" and save.
Saved PDF is flat PDF(Acroform) and can be edited easily
Thanks
[details removed by ussnorway]
Copy link to clipboard
Copied
With Adobe Acrobat you can print to "Adobe PDF".
Copy link to clipboard
Copied
Tried that on the MacOS Reader application. It just whines that I should do a "File - Copy". Which *****DOESN'T***** remove the XFA functions. Which means the file STILL can't be opened in Ocular, Evince, or the MacOS previewer.
Don't need it to be editable once it's filled out. I need it viewable.
Copy link to clipboard
Copied
A PDF without form fields – which is what you have when you “print to PDF” is NOT an AcroForm!! An AcroForm uses live/interactive form fields as defined in ISO 32000-1:2008.
Second, this process is EXTREMELY LOSSY! Not only to the form itself – losing all business rules, etc – but to the PDF, since Chrome’s PDF creation engine doesn’t support all the possible features of a PDF (or XFA-based PDF).

