bohning / usdb_syncer

MIT License
55 stars 8 forks source link

Pdf generation broken #195

Open fahrnertim opened 7 months ago

fahrnertim commented 7 months ago

On Version 0.3.0 when trying to export my songlist to a pdf the following exception is thrown: 2023-11-10 11:23:20 [ERROR] Uncaught exception: Traceback (most recent call last): File "usdb_syncer\gui\mw.py", line 324, in _generate_song_pdf File "usdb_syncer\pdf.py", line 36, in generate_song_pdf File "pdfme\document.py", line 496, in build_pdf File "pdfme\document.py", line 288, in run File "pdfme\document.py", line 357, in _process_section File "pdfme\document.py", line 376, in _add_content File "pdfme\content.py", line 254, in run File "pdfme\content.py", line 578, in run File "pdfme\content.py", line 508, in add_elements File "pdfme\content.py", line 817, in process File "pdfme\content.py", line 866, in process_text File "pdfme\text.py", line 651, in run File "pdfme\text.py", line 704, in add_part File "pdfme\text.py", line 344, in add_word File "pdfme\text.py", line 115, in add_word File "pdfme\text.py", line 167, in get_word_width File "pdfme\fonts.py", line 134, in get_text_width File "pdfme\fonts.py", line 134, in KeyError: '…'

Not sure what further Information to provide. Just ask and I ll try to answer.

bohning commented 7 months ago

This is a problem of the pdfme module. Apparently, it can’t handle the ellipsis (…) character. Please report it upstream: https://github.com/pdfme/pdfme/issues

mjhalwa commented 2 months ago

@fahrnertim did you try the new JSON Export feature? I wonder if the JSON export might also fulfill your usecase or if you would still prefer a PDF export. The idea was that the JSON export supports a wider range of custom visualizations.