Skip to content

Add success text to PDF creation path #6

@alallier

Description

@alallier

The end of the script prints the file location and then any fpdf2 warnings, which may make people think it's an error and didn't write the PDF

Example of current behavior

C:\Users\alallier\Documents\Mattermost-Export>python3 MMExport2PDF.py --auth=xyza -u=user -s=mattermost.com --t=Team
Channel Name
Total Messages:  76


./users\alallier\alallier.pdf

Font MPDFAA+Arial is missing the following glyphs:
meta NOT subset; don't know how to subset; dropped
meta NOT subset; don't know how to subset; dropped
meta NOT subset; don't know how to subset; dropped
TSIV NOT subset; don't know how to subset; dropped

Proposed behavior

C:\Users\alallier\Documents\Mattermost-Export>python3 MMExport2PDF.py --auth=xyza -u=user -s=mattermost.com --t=Team
Channel Name
Total Messages:  76

Warning: Font MPDFAA+Arial is missing the following glyphs:
meta NOT subset; don't know how to subset; dropped
meta NOT subset; don't know how to subset; dropped
meta NOT subset; don't know how to subset; dropped
TSIV NOT subset; don't know how to subset; dropped

Successfully wrote PDF to ./users\alallier\alallier.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions