looker-open-source / sdk-codegen

One SDK to rule them all, and in the codegen bind them
MIT License
232 stars 195 forks source link

Python: CreateRenderTask with page size options does not produce same output as manual download #167

Open ContrastingSounds opened 4 years ago

ContrastingSounds commented 4 years ago

If I make an sdk.create_dashboard_render_task() call with the same settings as the manual download (e.g. width 1680, landscape, page_size A4) I don't get the same PDF as a result. Similarly for A3. Have only tested with the Python SDK.

As well as not being the same output as manual download (which is what I would consider the expected behaviour), it doesn't produce an A4 or A3 page.

This is critical for an upcoming trial – also, I've seen a LOT of commentary at different accounts trying to get good, predictable PDF output. I'd imagine there's also a rendering aspect to this, but the primary requirement I believe is being able to use the API to get the same output as achievable via the UI.

Related nice to haves:

jkaster commented 4 years ago

I don't think this is a python issue. Sounds like it's more of a Looker API endpoint issue, and the bug should be entered against Looker rather than the SDK