Otput to PDF from any arbitrary HTML component on the page

It seem that the function toPDF() only works with the table view.
I need to output some arbitrary HTML (mostly textual information) to the pdf file.
Any suggestions are greatly appreciated

Hello @mark_pi ,

There are three solutions:
a. You can set for each exported widget the textBefore or the textAfter
b. You can also configure the function so that only a specific string is exported.
c. Use display: ‘image’ (works like page screenshot)
Please, check out the snippet with listed examples