Copy link to clipboard
Copied
I have a form that has one layer called LayerALL that is set to be visible as soon as the user opens the form. This layer has a drop down box which asks the user to choose their favorite color Red or Green. Based on selection of the user, LayerRed immediately is visible OR LayerGreen is immediately visible. The user then answers some questions and saves the form.
I then want to be able to open the form on my iPad using Reader and see the answers that each user has input. My problem is that the forms are showing up on my iPad with all user input but only LayerALL showing (it seems to be resetting it to the initial visibility of the form).
The form has a Save As button- is there a javascript or action that can be programmed in that Save As button that will either 'delete all non visible layers' or at least save the visibility of the layer from its default to either RedLayer or GreenLayer (depending on user input)?
Thanks in advance for your help! In Photoshop, the 'Flatten' feature is what ultimately I'm looking for here (the whole form is flattened showing only the layers currently visible while all other layers are deleted...i.e. I don't need the layers to be further available after the user has input his data)
Other info:
Form is created in Adobe Acrobat DC
Copy link to clipboard
Copied
You develop PDF using Adobe Acrobat and JavaScript for Acrobat. The one tests the PDF on their and other computer systems.
If one is going to use the PDF on any mobile device, then one needs to test the PDF not only on different mobile devices but also different apps on those devices. The default viewers for mobile devices do not support many advance features of PDFs, anything beyond display. The do not support form fields.
All PDF display apps for mobile devices have limited processing ability and do not support all the possible features of the computer base Acrobat or Reader.
Have you checked the capabilities of your PDF viewer app on your mobile device?
Enterprise Guide to Reader Mobile
I see nothing that says the OCG object is supported.
Copy link to clipboard
Copied
I apologize that I didn't clarify this. The user that fills out the form will always use Reader of their desktop. After the form is filled out, ANOTHER person just has to sign off on the info...and I am wanting to allow that 'sign off' to happen using Reader on an iPad. So, the layer capabilities don't need to translate to the end step. My question is how to remove all layers that are not visible after the 1st user inputs his information. The javascript I am seeking basically removes all layers that are not visible after the form is filled out. Is that possible?
Copy link to clipboard
Copied
There is no JavaScript to delete OCG's. The only way is to use Acrobat Professional's preflight processing.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now