diff --git a/microfrontends/SignDocuments/src/Component/PdfRequestFiles.js b/microfrontends/SignDocuments/src/Component/PdfRequestFiles.js
index c3b3c492a..6daf4a2a5 100644
--- a/microfrontends/SignDocuments/src/Component/PdfRequestFiles.js
+++ b/microfrontends/SignDocuments/src/Component/PdfRequestFiles.js
@@ -782,6 +782,7 @@ function PdfRequestFiles() {
allPages={allPages}
setAllPages={setAllPages}
setPageNumber={setPageNumber}
+ pageNumber={pageNumber}
/>
{/* pdf render view */}
diff --git a/microfrontends/SignDocuments/src/Component/SignYourselfPdf.js b/microfrontends/SignDocuments/src/Component/SignYourselfPdf.js
index e1fad20b6..db59dd7c7 100644
--- a/microfrontends/SignDocuments/src/Component/SignYourselfPdf.js
+++ b/microfrontends/SignDocuments/src/Component/SignYourselfPdf.js
@@ -23,7 +23,9 @@ import {
multiSignEmbed,
pdfNewWidthFun,
addDefaultSignatureImg,
- onImageSelect
+ onImageSelect,
+ placeholderHeight,
+ placeholderWidth
} from "../utils/Utils";
import { useParams } from "react-router-dom";
import Tour from "reactour";
@@ -36,6 +38,7 @@ import RenderPdf from "./component/renderPdf";
import { contractUsers, contactBook, urlValidator } from "../utils/Utils";
import { modalAlign } from "../utils/Utils";
import AlertComponent from "./component/alertComponent";
+import CopyAllPage from "./component/copyAllPage";
//For signYourself inProgress section signer can add sign and complete doc sign.
function SignYourSelf() {
@@ -79,6 +82,7 @@ function SignYourSelf() {
const [noData, setNoData] = useState(false);
const [contractName, setContractName] = useState("");
const [containerWH, setContainerWH] = useState({});
+ const [isPageCopy, setIsPageCopy] = useState(false);
const [showAlreadySignDoc, setShowAlreadySignDoc] = useState({
status: false
});
@@ -102,7 +106,6 @@ function SignYourSelf() {
const [{ isDragSign }, dragSignature] = useDrag({
type: "BOX",
-
item: {
type: "BOX",
id: 1,
@@ -115,7 +118,6 @@ function SignYourSelf() {
const [{ isDragStamp }, dragStamp] = useDrag({
type: "BOX",
-
item: {
type: "BOX",
id: 2,
@@ -140,7 +142,6 @@ function SignYourSelf() {
const [{ isDragStampSS }, dragStampSS] = useDrag({
type: "BOX",
-
item: {
type: "BOX",
id: 4,
@@ -329,7 +330,6 @@ function SignYourSelf() {
isDrag: false,
key: key,
isStamp: monitor,
-
yBottom: window.innerHeight / 2 - 60
};
@@ -516,22 +516,31 @@ function SignYourSelf() {
const scale = isMobile ? pdfOriginalWidth / newWidth : 1;
if (xyPostion.length === 1 && xyPostion[0].pos.length === 1) {
+ const xPos = () => {
+ const resizePos = xyPosData.xPosition;
+ if (isMobile) {
+ return resizePos * scale;
+ } else {
+ return resizePos;
+ }
+ };
const height = xyPosData.Height ? xyPosData.Height : 60;
+ const resizePos = xyPosData.yBottom;
const bottomY = xyPosData.isDrag
- ? xyPosData.yBottom * scale - height * scale
+ ? resizePos * scale - height * scale
: xyPosData.firstYPos
- ? xyPosData.yBottom * scale - height * scale + xyPosData.firstYPos
- : xyPosData.yBottom * scale - height * scale;
+ ? resizePos * scale - height * scale + xyPosData.firstYPos
+ : resizePos * scale - height * scale;
singleSign = {
pdfFile: pdfBase64Url,
docId: documentId,
sign: {
Base64: base64Url,
- Left: isMobile ? xyPosData.xPosition * scale : xyPosData.xPosition,
+ Left: xPos(),
Bottom: bottomY,
- Width: xyPosData.Width ? xyPosData.Width * scale : 150 * scale,
- Height: height * scale,
+ Width: placeholderWidth(xyPosData, scale),
+ Height: placeholderHeight(xyPosData, scale),
Page: pageNo
}
};
@@ -826,6 +835,7 @@ function SignYourSelf() {
setAllPages={setAllPages}
setPageNumber={setPageNumber}
setSignBtnPosition={setSignBtnPosition}
+ pageNumber={pageNumber}
/>
{/* pdf render view */}
@@ -881,6 +891,15 @@ function SignYourSelf() {
)}
+