Generate editable pdf for dynamic HTML5 form
I’ve a use case to generate editable pdf from a HTML5 form and I’m able to achieve it statically using com.adobe.fd.forms.api.FormsService.renderPDFForm(..). No issues here.
For another use case, I’ve a dynamic form where I’ve combined two static forms and put a dialog with radio buttons as front screen. It has some business logic written in both client side js & server side js. Now when I try to generate editable PDF using renderPDFForm(..), it doesn’t work as expected. The xml markup with data that is sent from the browser doesn’t merge correctly with the xdp. I think that is because of visibility rules set on each form in the designer. I tried to change the visibility rules and I could see the correlation between the xml data and server side properties set in the designer.
I can think of custom hacks to make it work but would like to understand if I’m doing something wrong fundamentally & if there is a better way to achieve this use case.
Thanks,
Gaurav