New to KendoReact? Start a free 30-day trial
Hidden Content
Hidden ContentPremium
During the PDF export process, you can generate additional content in the PDF which is otherwise not visible to the user. For example, you can add company logos or contact details to the exported document.
- Create a container that holds all the information you want to hide.
- Make sure your code fully renders the container.
- Use the
PDFExport
component or thesavePDF
method to export the hidden container.- The
PDFExport
component must be placed inside the hidden container. - The
savePDF
method must receive the hidden container as its first argument.
- The
The following demo shows how to export hidden content to PDF using the PDFExport
component. A hidden text block is positioned off-screen and appears only in the exported document, not on the web page.
Change Theme
Theme
Loading ...