Is there a way I can programatically generate an XDP from a PDF using livecycle or any other tool? I have looked at the XPAAJ library but was VERY disappointed with the XDP file it exports. Not only is it all encoded in a binary "chunk", but it doens't even load in lifecycle.
I essentially want to convert my PDF to readable XDP, identical to what happens when you use "Save as XDP" in lifecycle designer. The only problem is that I need to do this automatically, without manually opening livecycle etc.
LiveCycle Forms can do this if it's an XFA PDF (Designed in Designer)... if it's an AcroForm PDF (Designed in Acrobat) then LiveCycle Forms can grab data in XDP format from it, but not the template DOM (the section where the form design is described). The only way to convert an AcroFrom PDF to an XDP would be to import it into Designer.
Thanks for the reply Chris. Is there any plan to externalize the logic that designer uses to decompile a AcroForm pdf into template XDP for public consumption (or with a designer license)? I would find tremendous value in such a feature, and the code is already written.
FYI, in the Designer install directory you'll find ConvertPDF.exe. This is the process that Designer kicks off to convert an AcroFrom to a PDF. There doesn't seem to be any legal reasons why you couldn't write a script that uses this to do batch conversions. Maybe that will help you.
My company, Viga Technologies, has recently developed an object which converts XDPs to PDFs automatically. It can be deployed as a server side object to be incorporated into existing applications or it can be run as a service by us on a per-form basis. The input is the template (.xdp) as well as the XML data that you wish to populate the form with. It is extremely fast and generates PDFs 60-70 percent smaller than PDFs generated by Adobe Designer. If you have any questions, please feel free to contact me.