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

[Reporting] Generate PDF using page.pdf() #99539

Closed
tsullivan opened this issue May 6, 2021 · 2 comments
Closed

[Reporting] Generate PDF using page.pdf() #99539

tsullivan opened this issue May 6, 2021 · 2 comments
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead enhancement New value added to drive a business result impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:large Large Level of Effort

Comments

@tsullivan
Copy link
Member

tsullivan commented May 6, 2021

Describe the feature:
Export Dashboard to PDF creates a text-based PDF with page.pdf():

page.pdf() generates a pdf of the page with print CSS media. To generate a pdf with screen media, call page.emulateMediaType('screen') before calling page.pdf()

We want to generate PDF reports by having Chromium print the page as a PDF file and return it to us. This will make text become selectable in the PDF file, and should hopefully have performance / storage benefits since the data is not rasterized.

Currently, we capture a PNG screenshot of the page and build a PDF file in the Reporting code by placing the PNG in a PDF layout, which is expensive on resources.

@tsullivan tsullivan added enhancement New value added to drive a business result (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:AppServices labels May 6, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

@exalate-issue-sync exalate-issue-sync bot added the loe:small Small Level of Effort label May 6, 2021
@exalate-issue-sync exalate-issue-sync bot changed the title [Reporting] Capture the screen using page.pdf() [Reporting] Generate PDF using page.pdf() May 6, 2021
@exalate-issue-sync exalate-issue-sync bot added loe:large Large Level of Effort and removed loe:small Small Level of Effort labels May 6, 2021
@exalate-issue-sync exalate-issue-sync bot added impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. and removed impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. labels Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead enhancement New value added to drive a business result impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:large Large Level of Effort
Projects
None yet
Development

No branches or pull requests

3 participants