diff --git a/src/app/attachment/controllers/AttachmentController.php b/src/app/attachment/controllers/AttachmentController.php
index a628f493f75774b5e9659e45624aa659182d8215..f78783efa47602b0a1e66c182e17287581a4fe58 100755
--- a/src/app/attachment/controllers/AttachmentController.php
+++ b/src/app/attachment/controllers/AttachmentController.php
@@ -941,11 +941,6 @@ class AttachmentController
                 if (!empty($id['errors'])) {
                     return ['errors' => $id['errors']];
                 }
-                $customId = CoreConfigModel::getCustomId();
-                $customId = empty($customId) ? 'null' : $customId;
-                $coreUrl  = str_replace('rest/', '', UrlController::getCoreUrl());
-
-                exec("php src/app/convert/scripts/ConvertPdfScript.php --customId {$customId} --resId {$id} --type attachment --userId {$GLOBALS['id']} --coreUrl {$coreUrl} > /dev/null &");
             }
         }
 
diff --git a/src/app/external/externalSignatoryBook/controllers/MaarchParapheurController.php b/src/app/external/externalSignatoryBook/controllers/MaarchParapheurController.php
index 922047f85ec23354a19634e369e9074e08aff292..6933ab4986b7cc93c7f906687df278b49ad0db7b 100755
--- a/src/app/external/externalSignatoryBook/controllers/MaarchParapheurController.php
+++ b/src/app/external/externalSignatoryBook/controllers/MaarchParapheurController.php
@@ -286,6 +286,7 @@ class MaarchParapheurController
                         unset($attachments[$key]);
                     }
                 }
+                $mailingIds = [];
                 foreach ($attachments as $value) {
                     $resId  = $value['res_id'];
                     $collId = 'attachments_coll';
@@ -342,6 +343,9 @@ class MaarchParapheurController
                     $workflow = [];
                     foreach ($aArgs['steps'] as $step) {
                         if (!$step['mainDocument'] && ($step['resId'] == $resId || (!empty($value['mailingResId']) && $step['resId'] == $value['mailingResId']))) {
+                            if (!empty($value['mailingResId']) && empty($mailingIds[$value['mailingResId']])) {
+                                $mailingIds[$value['mailingResId']] = CoreConfigModel::uniqueId();
+                            }
                             $signaturePositions = null;
                             if (!empty($step['signaturePositions']) && is_array($step['signaturePositions'])) {
                                 $valid = true;
@@ -380,7 +384,8 @@ class MaarchParapheurController
                         'deadline'          => $processLimitDate,
                         'attachments'       => $attachmentsData,
                         'workflow'          => $workflow,
-                        'metadata'          => $metadata
+                        'metadata'          => $metadata,
+                        'mailingId'         => empty($value['mailingResId']) ? null : $mailingIds[$value['mailingResId']]
                     ];
                     if (!empty($aArgs['note'])) {
                         $noteCreationDate = new \DateTime();