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

Save schedule as PDF #9

Open
giorgosioak opened this issue Oct 21, 2022 · 3 comments
Open

Save schedule as PDF #9

giorgosioak opened this issue Oct 21, 2022 · 3 comments
Labels
enhancement New feature or request hacktoberfest help wanted Extra attention is needed

Comments

@giorgosioak
Copy link
Owner

We discussed this with other colleagues. We are looking for a client-side js library to save the schedule as a pdf. Please comment your ideas, this is open for discussion.

@giorgosioak giorgosioak added enhancement New feature or request help wanted Extra attention is needed hacktoberfest labels Oct 21, 2022
@batflarrow
Copy link

Hey @giorgosioak this is a good client-side library for downloading the schedule as pdf https://www.npmjs.com/package/jspdf.
This easily exports the table as a pdf. I can start working on it if this library works for you guys.

@tzagkaris
Copy link
Contributor

Well, another idea, that was originally suggested by dimspith and that we may need to consider, is "saving/converting" a snapshot of the webpage to a canvas using html2canvas. Using a button we can download the snapshot as a jpeg.

On top of that, we can even convert that canvas to pdf and have the user download that when the button is clicked.
Found a tutorial when researching about it.

@giorgosioak
Copy link
Owner Author

Thank you both for your comment. jsPDF looks like a good option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants