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

"Export slides deck to pdf" functionality #19

Open
GiulioRossetti opened this issue Apr 26, 2019 · 2 comments
Open

"Export slides deck to pdf" functionality #19

GiulioRossetti opened this issue Apr 26, 2019 · 2 comments
Labels
enhancement New feature or request ui / ux Issues and PRs related to UI/UX features

Comments

@GiulioRossetti
Copy link

Hi,
this project is indeed very nice.

What about implementing an "export to pdf" functionality for slides deck?
I feel that it might be something useful to make teaching resources available also offline.

@ines ines added the enhancement New feature or request label Apr 26, 2019
@ines
Copy link
Member

ines commented Apr 26, 2019

Yes, I've been thinking about this as well. The slides are powered by reveal.js, so in theory, PDF export should be possible. But I haven't really tried this yet.

The Gatsby/React setup that basically creates new instances of the Reveal slides for each slides section on the page might need some additional workarounds to ensure it's only ever printing the slides. But we might be able to do that in the print stylesheet.

(An alternative approach would be to generate the PDFs at build time via Gatsby. But this feels unnecessarily complicated and means we likely wouldn't be able to take advantage of what Reveal.js already does out-of-the-box.)

@ines ines added the ui / ux Issues and PRs related to UI/UX features label May 20, 2020
@dwinston
Copy link
Contributor

It seems that reveal.js's dynamic PDF export doesn't actually produce a PDF file. Rather, it produces a view that allows you to "print to PDF" in a way that requires a user to be sure to set layout to landscape, enable background graphics option, etc. decktape would generate PDFs at build time, but in a way that leverages reveal.js functionality (headless rendering), and it purports to support reveal.js.

I don't have immediate plans to try this, but I thought it'd be a helpful contribution to this thread. I am interested in perhaps building a course using ines/course-starter-python, and slide deck PDFs would be something I'd want.

ines pushed a commit that referenced this issue Oct 5, 2020
Translate non-slide contents, exercises, and data in Chapter 3 (#8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ui / ux Issues and PRs related to UI/UX features
Projects
None yet
Development

No branches or pull requests

3 participants