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 HTML instead of PDF #386

Open
GV14982 opened this issue Oct 28, 2024 · 2 comments
Open

Export HTML instead of PDF #386

GV14982 opened this issue Oct 28, 2024 · 2 comments

Comments

@GV14982
Copy link
Contributor

GV14982 commented Oct 28, 2024

Hi, looking at presenterm-export I see that it converts to HTML as an intermediate representation. Is it possible to export that instead of a PDF currently? If not, is that a feature you might be interested in supporting? I'd be happy to contribute, just looking for some guidelines on where to start :)

@mfontanini
Copy link
Owner

The intermediate HTML is not really ready to be used in a browser as it's very tailored to be turned into a PDF. If you'd like an HTML export you'd probably need to massage the content quite a bit to make it look good. I'm curious how this would look like, you'd need buttons to go back and forth, and everything needed to make it look good on a browser. Also what about text positioning? The PDF tries to look the same as the presentation but in a browser you can scale the window and that'd change the way the text looks. e.g. if you widen it you probably wouldn't want to keep the presentation stuck to the top left corner.

I actually started making quite a few changes on presenterm-export to not rely on tmux/ansi2html anymore which may help here, since it doesn't need to deal with transforming HTML but instead turning text into HTML. I should have something at some point in the near future but in the meantime maybe figuring out how this would look like would be a good starting point.

But besides this, I'm curious why you'd want an HTML export and not PDF? It seems like PDF is a more "sharing friendly" format, unless you're looking at hosting the slides on the web directly?

@GV14982
Copy link
Contributor Author

GV14982 commented Nov 3, 2024

Tbh, I just want my gifs to play 😆

But yeah, I just kind of want to be able to send a fully functional set of slides to people who don't use presenterm.

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

2 participants