Default pdf output from tableau would have a huge margin. Currently using tableau server I don’t see a solution. But using Tableau desktop i was able to fix this.
in tableau desktop
1. go to file–> page setup–> remove margins
2. go to file–> print to pdf –> paper size – Unspecified.