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 initalState.PNG](/t5/image/serverpage/image-id/6200i7D98C38088D5E4F1/image-size/large?v=v2&px=999)
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 Saved.PNG](/t5/image/serverpage/image-id/6201i63A3CA71AE4384F3/image-size/large?v=v2&px=999)
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 converted.PNG](/t5/image/serverpage/image-id/6202i03D4A177573ED41C/image-size/large?v=v2&px=999)
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 TheProcess.PNG](/t5/image/serverpage/image-id/6203i480A69E32486E753/image-size/large?v=v2&px=999)
Here is an example of one of the convertation steps:
![convertation.PNG convertation.PNG](/t5/image/serverpage/image-id/6204i2FF520A78F0263AB/image-size/large?v=v2&px=999)
Here is rights removement step:
![rightRemovement.PNG rightRemovement.PNG](/t5/image/serverpage/image-id/6205i70A9B0A72E7A304B/image-size/large?v=v2&px=999)
And that is whatched folder step settings:
![whatchedFolder.PNG whatchedFolder.PNG](/t5/image/serverpage/image-id/6206i3E2FD81A277F5C98/image-size/large?v=v2&px=999)