Actually, if you know what you are doing, you can create the XFA structure from scratch. The API documentation is available. Then all you need to do is create the wrapper PDF using COS level functions, and add the XFA code in the correct place. However, I would not recommend doing that. That's why we have applications that can create XFA documents based on the layout you create in a graphic UI.
Also, you need to consider if it's worth doing that when Adobe is actually turning away from XFA. Your documents would have to be edited in Adobe Acrobat or the free Adobe Reader on the desktop. Your chances of finding a mobile application that can fill out your form are very small to nonexistent. I advice my clients to stay away from XFA if at all possible. Yes, you cannot have tables that automatically expand (and other more dynamic form elements), but the chances that somebody can actually fill the form are much better. Karl Heinz Kremer PDF Acrobatics Without a Net PDF Software Development, Training and More... [email protected] http://www.khkonsulting.com On Fri, Jan 27, 2017 at 4:09 AM, Maruan Sahyoun <[email protected]> wrote: > Hi, > > > Am 27.01.2017 um 09:47 schrieb Bharat Bhatt <[email protected]>: > > > > Thanks a lot Maruan > > > > Do you have any sample which I can refer to create XFA form using PDXBox > > api? > > it might have been misleading. To create the XFA you need to use the Adobe > LiveCycle Designer, AEM Forms Designer or create it with an editor as this > is XML based. If you have that XFA you could then create the PDF Wrapper > with PDFBox and put the XFA in. Normally this is also not neccesary as the > Adobe tools allow you to save as PDF. > > To create XFA PDFBox doesn't provide any mechanism, API or such. > > BR > Maruan > > > > > Thanks, > > Bharat > > > > On Fri, Jan 27, 2017 at 12:59 PM, Maruan Sahyoun <[email protected] > > > > wrote: > > > >> Hi, > >>> Am 27.01.2017 um 06:51 schrieb Bharat Bhatt <[email protected]>: > >>> > >>> Hi, > >>> > >>> I want to create Table in PDF and on click on "+" new row will be added > >> (as > >>> repeatable section) . > >>> Is there any api in PDFBOX which I can use to create dynamic table with > >>> repeatable row (Row will be add when user click on + sign) > >> > >> dynamic rows (with form felds and such) are a functionality of XFA > forms [ > >> https://en.wikipedia.org/wiki/XFA]. PDF acts as a wrapper and holds the > >> XFA object which is interpreted at runtime by Adobe Reader/Acrobat and > >> others hwo support that. Although you can use PDFBox to generate that > >> wrapper generating the XFA is not part of it. Typically Adobe LiveCycle > >> Designer or AEM Forms Designer is used to create such forms. > >> > >> BR > >> Maruan > >> > >>> > >>> Thanks, > >>> Bharat > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

