Hide table or component when there is no record in table in pdf generation

In the PDF section, go to your PDF Page, and you’ll have a Javascript tab at the top.