From 5eaf46f4da7fb3c4d68d9c7cb1f6b8aa6219ac74 Mon Sep 17 00:00:00 2001 From: Richard Qi Date: Tue, 27 Feb 2024 14:15:20 -0800 Subject: [PATCH 1/2] Fix jpeg stitching issue #2941 --- web/src/components/FOI/Home/Redlining.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/FOI/Home/Redlining.js b/web/src/components/FOI/Home/Redlining.js index 9ac2d1d5d..88fa2f1c3 100644 --- a/web/src/components/FOI/Home/Redlining.js +++ b/web/src/components/FOI/Home/Redlining.js @@ -690,7 +690,7 @@ const Redlining = React.forwardRef( ) => { slicedsetofdoclist.forEach(async (filerow) => { await createDocument(filerow.s3url, - { useDownloader: false } // Added to fix BLANK page issue + { useDownloader: false, loadAsPDF: true } // Added to fix BLANK page issue - added loadAsPDF to fix jpeg stitiching issue #2941 ).then(async (newDoc) => { setpdftronDocObjects((_arr) => [ ..._arr, From 7092efd0ee393f2cb168a252ff0ae792642c0efb Mon Sep 17 00:00:00 2001 From: Richard Qi Date: Wed, 28 Feb 2024 09:29:35 -0800 Subject: [PATCH 2/2] code format --- web/src/components/FOI/Home/Redlining.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/src/components/FOI/Home/Redlining.js b/web/src/components/FOI/Home/Redlining.js index bd0dd15e0..8787e330c 100644 --- a/web/src/components/FOI/Home/Redlining.js +++ b/web/src/components/FOI/Home/Redlining.js @@ -689,9 +689,10 @@ const Redlining = React.forwardRef( set ) => { slicedsetofdoclist.forEach(async (filerow) => { - await createDocument(filerow.s3url, - { useDownloader: false, loadAsPDF: true } // Added to fix BLANK page issue - added loadAsPDF to fix jpeg stitiching issue #2941 - ).then(async (newDoc) => { + await createDocument(filerow.s3url, { + useDownloader: false, // Added to fix BLANK page issue + loadAsPDF: true, // Added to fix jpeg/pdf stitiching issue #2941 + }).then(async (newDoc) => { setpdftronDocObjects((_arr) => [ ..._arr, {