These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

LiveCycle Forms Design using Java API

jvenkatrao
Registered: Feb 18 2011
Posts: 3
Answered

I want to change some of my form designs using Java. These forms are created using Livecycle Designer 8.2. What Java APIs do I need to use to manipulate forms design?
 
Thanks,
Jyothi

Thanks,
Jyothi

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Do you mean "Java" running on the server? Or JavaScript, which is the internal programming language for implementing interactive features on LiveCycle forms? What kinds of changes?

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

jvenkatrao
Registered: Feb 18 2011
Posts: 3
I am using Java on the server side. I want to add Javascript functions to the forms using APIs.
Is that possible ?

Thanks,
Jyothi

Thanks,
Jyothi

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Accepted Answer
Yes, but it's not easy. There are lots of 3rd party Programming tools for manipulating PDFs and AcroForms, but only Adobe has programming tools for manipulating LiveCycle forms. But this doesn't mean it can't be done.

There is a free Java Object Library for PDF called iText. This is a really well thought out and maintained SDK. It allows for easy to write, simple manipulations of PDF at a high level. But if you know what you are doing, you can drill down through the Java Objects to the lowest level of the PDF structure. You could use this library to access and modify the XDP in the LiveCycle PDF.

Alternatively, you can modify a LiveCycle form by importing an XDP file. I don't know if the XDP can be used to add a script to the form template, because I haven't tried it. But if this does work it would be much, much easier than using iText.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script