Hidden Content

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

To export company logos, contact details, or other types of information to PDF that is not visible to the user, utilize the PDFExport component or the savePDF method.

To prevent such extra content 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?