Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Printing Hidden Pages

Avatar

Former Community Member
I have an 8 page form. I want pages 1-6 to be screen and print, and I want 7-8 to be print only. Im not sure what I am doing wrong. When I change pages 7-8 to print only they still show up as blank pages on the screen. Can anyone help? Thanks.
1 Reply

Avatar

Former Community Member
They show up as blank pages because they have to exist in the layout.If you make them hidden then they will not appear, but they will not print either (as they do not exist in th elayout). Before you print you could change the pressence programmatically so that they do exist, then set them back to hidden after printing. You can try it on the pre and post print events.