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

Feature request: more arguments to screenshot_pdf #11

Open
ps0ares opened this issue Feb 2, 2020 · 2 comments
Open

Feature request: more arguments to screenshot_pdf #11

ps0ares opened this issue Feb 2, 2020 · 2 comments

Comments

@ps0ares
Copy link

ps0ares commented Feb 2, 2020

Consider adding the following arguments to screenshot_pdf: print_background, pagesize and margins. That way It would be possible to print html slideshows to pdf, for example.

@Patrick330
Copy link

Please also consider scale, which could be mapped to the zoom argument already handled by webshot(). My tables print with scrollbars because I cannot scale them to match the PDF page size.

@cderv
Copy link

cderv commented Aug 21, 2023

I believe this is also impact automatic screenshot feature for PDF in knitr when HTML content is detected (like a leaflet map). The fig.height and fig.width options of the chunk options will only have impact to set the viewport, but then the PDF output will be based on a print of the page using default pagesize (which is letter I think). This lead to wrong size screenshot on wide size webpage. (Quarto is expecting 300 DPI content which led to higher pixel size than rmarkdown).

See issue linked above for context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants