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
I've implemented PDF reports generation based on DataLens dashboards using Puppeteer. There are several major obstacles in this approach.
One should pass page width for each tab so that all elements fit into PDF page. Page height is available via .react-grid-layout.
DataLens loads widgets lazily, hence one needs to set viewport size equal to the page size so that all elements are loaded simultaneously. But in this way, a single tab with many widgets may load longer than default navigation timeout of 30 seconds, so one needs to adjust this timeout. Plus one may get errors from data source because it may not allow too many simultaneous connections.
.dash-tabs element breaks PDF page width in case of a dashboard with multiple tabs. So it should be removed from the page before executing page.pdf() (although in my opinion horizontal tabs list is pointless in case of PDF reports, so that's a good thing that they should be removed).
It is also possible to remove some buttons from web page before rendering it as PDF.
Marginy605
changed the title
Экспорт дашбоардов в PDF и печать
Publisher/Presentation tools
Jan 23, 2024
добрый день, была бы полезна функциональность печати дашбоардов и экспорта как pdf
The text was updated successfully, but these errors were encountered: