Skip to content

Commit

Permalink
Merge branch 'main' into main-AS-FOIMOD-3073
Browse files Browse the repository at this point in the history
  • Loading branch information
aparna-aot committed Oct 8, 2024
2 parents 928e72c + 4c3315a commit b4b55d0
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b4b55d0

Please sign in to comment.