You can generate content in PDF which is otherwise not visible to the user during the PDF export itself.
To prevent such extra content from displaying during the PDF export:
- Create a container that holds all the information you want to hide from the user.
- Make sure that the container is fully rendered.
The following example demonstrates how to use absolute positioning to move the container off the screen.