Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4841

Print approval: add size limit check for PDF attachment

XMLWordPrintable

    • Medium
    • Print approval: added size limit check for PDF attachment

      Problem

      Per config you can choose to attach the visual from the print approval job to the print approval e-mail, that is sent to PM when the task is approved by the print approver. However, this PDF can be very large in size, so that mailboxes will reject the message.

      Solution

      Add runtimeOptions.plugins.VisualReview.visualApproverPdfMaxEmailSizeMb with default value 20.

      If Pdf file size is larger than that value then instead of attaching Pdf, add a note

      EN: 

      The file size exceeds the configured maximum. Please go to the task via the following link and export the PDF manually via the task menu: 

      [Link to task]

      DE:

      Die Dateigröße überschreitet das konfigurierte Maximum. Bitte gehen Sie über folgenden Link zur Aufgabe und exportieren das PDF manuell über das Aufgabenmenü: 

      [Link to task]

            volodymyr@mittagqi.com Volodymyr Kyianenko
            sylviaschumacher Sylvia Schumacher
            Axel Becher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: