Skip to content

[v1.x] PDF Export / E-Mail of Meeting Minutes #39

@derwok

Description

@derwok

As a moderator I want to have PDF/A versions of my meeting protocols for long time archiving.

    "DocGeneration": {
        "enabled": true,
        "format": "pdf"
        "pathToWkhtmltopdf": "/usr/local/bin/wkhtmltopdf",
        "pathToGhostscript": "/usr/local/bin/gs",
        "targetDocpath": /4minitz_data/files/protocols"
    }
  • Make a "launch" test:
    • If feature is enabled via settings but one of the necessary binaries is missing, generate an error message with hint what is missing
    • Check targetPDFpath if it exists, if not create it, check if write permissions exist, if not report error.
  • On finalizing of minutes generate a 1:1 PDF/A version of the HTML protocol that is already send via EMail
  • If PDF/A generation goes wrong (e.g. needed binary is missing), log error to server log and show error as "Toast" to moderator.
  • Allow to download the PDF/A from the minutes view via the same mechanism as the binary attachments. But with a separate file collection. (PDFs should not count as attachments!).
  • Below the "targetDocpath" create a sub dir with the meetingSeries ID "abcDe1234deFG", below this create a sub dir per year (e.g. "2017") and put PDF there (MeteorFiles module will specify the filename). On download the name should be: "MeetingSeries-Name - YYYY-MM-DD.pdf"
  • On meeting un-finalize: delete the existing PDF minutes. Only one (the last!) protocol of finalized minutes shall be stored in the file system.
  • Only "Invited" (not informed!) users should have access to the PDF protocol, even if the have a proper download URL (compare to file attachments).
  • Adapt the admin doc and describe the steps necessary to generate PDF/A
  • Cover functionality with E2E test (we should be sure it works, if helper binaries are at place)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions