🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
Merge branch 'staging' into placeholder-mobile-view2
prafull-opensignlabsbfae7f236c6d
diff --cc microfrontends/SignDocuments/src/Component/component/renderPdf.jsindex 8c8416a43,62aba99d1..abebeb5db--- a/microfrontends/SignDocuments/src/Component/component/renderPdf.js+++ b/microfrontends/SignDocuments/src/Component/component/renderPdf.js@@@ -42,40 -42,11 +42,42 @@@ function RenderPdf(const isMobile = window.innerWidth < 767;const newWidth = window.innerWidth;const scale = isMobile ? pdfOriginalWidth / newWidth : 1;++ // handle signature block width and height according to screen+ const posWidth = (pos) => {+ let width;+ if (isMobile) {+ if (!pos.isMobile) {+ width = pos.Width / scale ? pos.Width / scale : 150 / scale;+ return width;+ } else {+ width = pos.Width ? pos.Width : 150;+ return width;+ }+ } else {+ width = pos.Width ? pos.Width : 150;+ return width;+ }+ };+ const posHeight = (pos) => {+ let width;+ if (isMobile) {+ if (!pos.isMobile) {+ width = pos.Height / scale ? pos.Height / scale : 60 / scale;+ return width;+ } else {+ width = pos.Height ? pos.Height : 60;+ return width;+ }+ } else {+ width = pos.Height ? pos.Height : 60;+ return width;+ }+ };- //function for render placeholder block over pdf document+ //check isGuestSigner is present in local if yes than handle login flow header in mobile view+ const isGuestSigner = localStorage.getItem("isGuestSigner");+ //function for render placeholder block over pdf document-const checkSignedSignes = (data) => {const checkSign = signedSigners.filter((sign) => sign.objectId === data.signerObjId