Skip to content

Commit

Permalink
Merge pull request #1185 from bcgov/test-RQ-FOIMOD-3472
Browse files Browse the repository at this point in the history
bug fix - missing page stamps - FOIMOD-3476
  • Loading branch information
richard-aot authored Oct 7, 2024
2 parents 1331be1 + 43edf54 commit 4c3315a
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 4c3315a

Please sign in to comment.