elyukai / optolith-client

Optolith Character Manager is a desktop application for The Dark Eye 5th Edition.
https://optolith.app
Other
161 stars 44 forks source link

Export character sheets from character list #1582

Open elyukai opened 1 year ago

elyukai commented 1 year ago

Currently you can export each character’s JSON right from the character list, but that is not the case for generated character sheets as PDFs. It would be handy to be able to do just that, which would be especially helpful for GMs if they want to export all of the character sheets of the group’s characters.

This is not easy to implement, since the data to generate the character sheets is only available if a character is loaded. Also, generating the HTML on-the-fly will likely result in UI freezes, since this is already the case in the dedicated character sheet tab.

The option to get completely rid of the lag would most likely only be the manual generation of the PDF using a PDF toolkit like pdf-lib. This would be a huge amount of work, though, since manual PDF creation is a really cumbersome and imperative way of creating a PDF.