The Tableau REST API supports the resolution parameters vizHeight and vizWidth for PDF generation of views and workbooks, but the tableauserclient does not provide this capability.
Suggested implementation
The implementation in tableauserclient seems to be quite simple. It is just a matter of adding these additional parameters to the PDFRequestOptions class and extending the get_query_params() method for the parameters.
I have inherited a child class from PDFRequestOptions and added the functionality. However, I would appreciate it if this functionality could be added to the tsc module as updates to the base class could otherwise break it.
Summary
The Tableau REST API supports the resolution parameters vizHeight and vizWidth for PDF generation of views and workbooks, but the tableauserclient does not provide this capability.
Suggested implementation
The implementation in tableauserclient seems to be quite simple. It is just a matter of adding these additional parameters to the PDFRequestOptions class and extending the get_query_params() method for the parameters.
I have inherited a child class from PDFRequestOptions and added the functionality. However, I would appreciate it if this functionality could be added to the tsc module as updates to the base class could otherwise break it.
This is my workaround implementation:
`