sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 211 forks source link

Allow users to download PDF statements #7013

Open novoselt opened 10 months ago

novoselt commented 10 months ago

At the moment it is possible to download CSV, JSON, or email a version where most of the info is in JSON. While these options contain all the information, they are very hard to read for humans. It would be nice to have a concise but informative PDF download as well.

williamstein commented 2 weeks ago

Last I checked, generating pdf's is really, really painful in javavascript/nodejs. Running latex or pandoc greatly increases the complexity of the api server, and the chances for security issues and other attacks. So this might be surprisingly hard. Also, it's vague because there's a lot of work that needs to be done to define what the actual statement should say in PDF format.

Probably the best thing would be an HTML report, and an easy way for the user to print it from their browser.

novoselt commented 2 weeks ago

"Download" means "easily obtain" - if it is an HTML report but with a nice layout for printing, then opening printing dialog is perfectly fine, most browsers/systems allow you to print to PDF.