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

Using crrri to save PDF output from gt package? #77

Open
Dr-Joe-Roberts opened this issue Jul 17, 2019 · 6 comments
Open

Using crrri to save PDF output from gt package? #77

Dr-Joe-Roberts opened this issue Jul 17, 2019 · 6 comments

Comments

@Dr-Joe-Roberts
Copy link

Is it possible to use the crrri package to generate a PDF of the tables generated using the gt package?

@RLesur
Copy link
Owner

RLesur commented Jul 17, 2019

Yes, you can generate a pdf of any web page with chrome.
If this is your need, I recommend you to give a try first to pagedown::chrome_print().
If this function does not suit your needs then write your own async function.

@Dr-Joe-Roberts
Copy link
Author

I am not sure, but pagedown::chrome_print() doesn't appear to work with the gt object.

@RLesur
Copy link
Owner

RLesur commented Jul 17, 2019

of course, you have to save the gt object as a standalone html file, then print this html file

@Dr-Joe-Roberts
Copy link
Author

Apologies, I didn't explain that very well. I can get the gt object to print using pagdown::chrome_print(), but it is not formatted correctly. This is slightly off topic for here though, so may cross post this to the gt package.

@cderv
Copy link
Collaborator

cderv commented Jul 18, 2019

One way to check what printing with crrri would look like is to interactively open your document in chrome then click the print to PDF button and see how it looks in the pre-visualisation window. Sometimes, this rendering does not appear the same as in the navigator.
If this is not shown as you want in the browser, crrri won't help print it better until something is change in the webpage.
Please, cross post in gt and link to here so that we can follow and see what can be done. Thanks for the report !

@cderv
Copy link
Collaborator

cderv commented Oct 8, 2019

@Dr-Joe-Roberts is this still an issue ?
If so, do you have a reproductible example we can use ?

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