rstudio / rstudio/flexdashboard

Print options preclude the use of pagedown

Open
#347 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
848
Forks
298
PR merge metrics
No merged PRs in 30d

Description

It would be quite useful to be able to print a flexdashboard to pdf as a backup method to provide the content to people.

Per this issue, https://github.com/rstudio/pagedown/issues/229, this doesn't work currently with pagedown/Chrome print and flexdashboards due to the print CSS rules in bootstrap:

@media print { *, *:before, *:after { background: transparent !important; color: #000 !important; -webkit-box-shadow: none !important; box-shadow: none !important; text-shadow: none !important; } }

Perhaps these are important for other reasons, but if there were at least an easy option in flexdashboard to override them, it would be lovely. I have evidence that I'm not the only one who would be interested in this capability.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the referenced pagedown issue and the Bootstrap @media print rules shown here. Trace how flexdashboard includes these print rules and determine an override option that preserves existing behavior while enabling pagedown/Chrome PDF output; done when a flexdashboard can be printed to PDF with its content and styling intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, css
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.