Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publisher/Presentation tools #50

Open
zxan2 opened this issue Nov 27, 2023 · 1 comment
Open

Publisher/Presentation tools #50

zxan2 opened this issue Nov 27, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request enterprise Features that would be added to our commercial on-premise offering

Comments

@zxan2
Copy link

zxan2 commented Nov 27, 2023

добрый день, была бы полезна функциональность печати дашбоардов и экспорта как pdf

@resure resure added the enhancement New feature or request label Dec 5, 2023
@pashkov-v
Copy link
Contributor

I've implemented PDF reports generation based on DataLens dashboards using Puppeteer. There are several major obstacles in this approach.

  1. One should pass page width for each tab so that all elements fit into PDF page. Page height is available via .react-grid-layout.
  2. 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.
  3. .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 Marginy605 changed the title Экспорт дашбоардов в PDF и печать Publisher/Presentation tools Jan 23, 2024
@resure resure added the enterprise Features that would be added to our commercial on-premise offering label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request enterprise Features that would be added to our commercial on-premise offering
Projects
Status: In Progress
Development

No branches or pull requests

4 participants