Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

How to flattern interactive PDF?

Avatar

Level 3

I have Livecycle ES4 and an interactive form with user rights and a bunch of rules, which change some fields states, depending of  users actions with other fields. I have to make this form (after it was filled, so with all the changes) flat.

I've tried to user OutputService transformPDF operation.

But as a result i recieve a flat form with inital state.

For example. I have a form with three fields (two images and one text field). One image and text field are visible initialy and one image is invisible initialy. When user types something on text field, the another one image changes it's state to visible.  It is done with such code:

form1.#subform[0].TextField1::exit - (JavaScript, client)

xfa.resolveNode("Stamp[1]").presence = "visible";

Also, this form is enriched with a user right to save it with its state.

1. So, initially my form looks like this (only one image and text field are visible):

initalState.PNG

2. Then I enter some text, another image becomes visible, and i save the form (the red one stamp is visible after reopening this saved form).

Saved.PNG

3. Then i send it to the convertation via transformPDF operation and as a result i recieve a form only with two visible fields:

converted.PNG

So, what am I doing wrong?

Here is my whole process. The first one step is for removing user rights, as without this step i recieve error, which say that only forms with no user rights can be converted. The second 4 steps in gateway - are differen variants of using transformPDP with diff. settings.

TheProcess.PNG

Here is an example of one of the convertation steps:

convertation.PNG

Here is rights removement step:

rightRemovement.PNG

And that is whatched folder step settings:

whatchedFolder.PNG

0 Replies