You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add vizWidth/vizHeight to PDF export for views and workbooks (#1795)
* feat: add vizWidth/vizHeight to PDFRequestOptions
Fixes#1102
- PDFRequestOptions already inherited viz_width/viz_height from
_ImagePDFCommonExportOptions (shared with ImageRequestOptions), which
serialises them as vizWidth/vizHeight query params
- Added version guard in views.populate_pdf: raises UnsupportedAttributeError
when viz_height or viz_width are used below API 3.26
- Added tests for the new version guard, the happy path (API 3.26+), unit-
level query-param serialisation, and the existing XOR validation
- Removed stray bare literal '44' from test_request_option.py
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: remove incorrect version gate on vizWidth/vizHeight for PDF export
The REST API docs claimed vizHeight/vizWidth required API 3.26 and were
Cloud-only, but server-side code shows these params have been accepted
unconditionally since at least 2021.4 with no platform distinction.
Remove the 3.26 guard; the endpoint's own minimum version is sufficient.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments