Expand my Community achievements bar.

Supressing pages

Avatar

Level 6
Hello again...



Is it possible to supress a pdf page even if this page is not Flow Content. I realize that if I set the presence attribute of the page to hidden, only the subform of the page is supressed and not hte page itself.



Thank you!
3 Replies

Avatar

Former Community Member
If, in the binding tab of the page object you select the option to "repeat subform.." and set min occurances to 0 (you probably want to set init occurances to 1) you can then use the instanceManger.removeInstance() method to remove a page from the PDF. However, this will not work for the first page, only pages 2 on.



Chris

Adobe Enterprise Developer Support

Avatar

Level 6
Hi,



Is there any way to test if the form has been marked as a repeated subform or not?



Thank you!

Avatar

Former Community Member
You can look at the min and max occurs of a subform like this:



SubForm.occurs.min

SubForm.occurs.max



If the min and max are both 1 then it's not a repeating subform.



Chris

Adobe Enterprise Developer Support