From 43edf54a47d1c8779504a3f4205f96217c707f90 Mon Sep 17 00:00:00 2001 From: Richard Qi Date: Mon, 7 Oct 2024 10:31:52 -0700 Subject: [PATCH] bug fix - missing page stamps --- .../useSaveRedlineForSignOff.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/src/components/FOI/Home/CreateResponsePDF/useSaveRedlineForSignOff.js b/web/src/components/FOI/Home/CreateResponsePDF/useSaveRedlineForSignOff.js index b35bcab3..45d143b7 100644 --- a/web/src/components/FOI/Home/CreateResponsePDF/useSaveRedlineForSignOff.js +++ b/web/src/components/FOI/Home/CreateResponsePDF/useSaveRedlineForSignOff.js @@ -1491,13 +1491,6 @@ const stampPageNumberRedline = async ( let doc = docViewer.getDocument(); await annotationManager.applyRedactions(s14annots); - await stampPageNumberRedline( - stitchObject, - PDFNet, - redlineStitchInfo[divisionid]["stitchpages"], - isSingleRedlinePackage - ); - /** apply redaction and save to s3 - newXfdfString is needed to display * the freetext(section name) on downloaded file.*/ doc @@ -1519,7 +1512,14 @@ const stampPageNumberRedline = async ( /**must apply redactions before removing pages*/ if (redlinepageMappings["pagestoremove"][divisionid].length > 0) { await docObj.removePages(redlinepageMappings["pagestoremove"][divisionid]); - } + } + + await stampPageNumberRedline( + docObj, + PDFNet, + redlineStitchInfo[divisionid]["stitchpages"], + isSingleRedlinePackage + ); docObj.getFileData({ // saves the document with annotations in it