Hidden Content

You can generate content in PDF which is otherwise not visible to the user during the PDF export itself.

To prevent such extra content (company logos, or contact details) from displaying during the PDF export:

  1. Create a container that holds all the information you want to hide from the user.
  2. Make sure that the container is fully rendered.

The following example demonstrates how to use absolute positioning to move the container off the screen.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?