How can I export table data in pdf format in perspective?

Welcome to the forum.

Please see Wiki - how to post code on this forum. It's particularly important for Python scripts to preserve indentation. There's a pencil icon link under your post so you can edit to fix it.