Skip to main content
Participant
July 1, 2008
Answered

Convert XFA Form to AcroForm?

  • July 1, 2008
  • 16 replies
  • 62932 views
Greetings (I'm desperately seeking an answer to this, but I'll try to keep the rhetoric toned down!):

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
Correct answer lrosenth

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).

16 replies

Bernd Alheit
Community Expert
Community Expert
July 7, 2008
That doesn't convert a XFA Form to an AcroForm.
Participant
July 7, 2008
"Forms - "Start Form Wizard" - "A Paper Form"
Participating Frequently
July 7, 2008
There is another way but it's a manual process and it's a HACK. Using this process will basically kill any XFA or JS functionality that was in the form previously. So proceed at your own risk...

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
Participating Frequently
July 2, 2008
I'd be curious to know where you believe Acrobat 9 has XFA->AcroForm conversion functions built into the UI of the product...
Participant
July 2, 2008
Acrobat 9 has conversion to Acroform functionality, it might help.
Participating Frequently
July 1, 2008
There is nothing in the Acrobat UI that will enable this operation.

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