PageSourceSearch

https://pdfsign.in/web/_next/static/chunks/app/page-bf4545437941d34b.js?dpl=dpl_2J7JvqxVAimMzseVZwoCwXECXGDT

js pdfsign.in collected 2026-10-03 20:08:54 UTC 11,172 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{193:function(e,t,s){Promise.resolve().then(s.bind(s,6774))},6774:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return u}});var l=s(7437),a=s(7818),n=s(2265),r=s(8820),i=s(3894),o=s(5625),d=s(9457),c=s(244),x=s(7340);let m=(0,a.default)(()=>Promise.all([s.e(479),s.e(881)]).then(s.bind(s,881)),{loadableGenerated:{webpack:()=>[881]},ssr:!1,loading:()=>(0,l.jsx)("div",{className:"flex items-center justify-center h-64 text-slate-400 text-sm animate-pulse",children:"Loading PDF viewer…"})});function u(){let[e,t]=(0,n.useState)(null),[s,a]=(0,n.useState)(""),[u,h]=(0,n.useState)("draw"),[p,f]=(0,n.useState)(null),[g,b]=(0,n.useState)([]),[j,v]=(0,n.useState)(!1),[N,w]=(0,n.useState)(0),[y,k]=(0,n.useState)(!1),[D,A]=(0,n.useState)(""),[C,F]=(0,n.useState)(!1),[P,S]=(0,n.useState)(!0),[B,L]=(0,n.useState)(1),[_,M]=(0,n.useState)(null),E=(0,n.useRef)(null);(0,n.useEffect)(()=>{var e;let t=document.cookie.match(/(?:^|;\s*)__pdfsign_country=([A-Z]{2})/);S("IN"===(null!==(e=null==t?void 0:t[1])&&void 0!==e?e:"IN"))},[]);let T=e=>{if(A(""),!e.name.toLowerCase().endsWith(".pdf")){A("Please upload a PDF file.");return}if(e.size>15728640){A("File is too large (max ".concat(15," MB). For larger files use PDFSign Desktop."));return}a(e.name),b([]),f(null),L(1),M(null);let s=new FileReader;s.onload=e=>{var s;return t(null===(s=e.target)||void 0===s?void 0:s.result)},s.readAsArrayBuffer(e)},W=(0,n.useCallback)(e=>{f(e)},[]),Z=(0,n.useCallback)(e=>{b(t=>[...t,e]),f(null),B>1&&M(e.id)},[B]),z=(0,n.useCallback)(e=>{b(t=>{let s=t.find(t=>t.id===e);return s?[...t,...Array.from({length:B},(e,t)=>t).filter(e=>e!==s.page).map(t=>({...s,id:"".concat(e,"-p").concat(t),page:t}))]:t})},[B]),R=async()=>{if(!e||0===g.length){A("Place at least one signature on the PDF before downloading.");return}k(!0),A("");try{let t=await (0,x.T)(e,g),l=s.replace(/\.pdf$/i,"")||"document";(0,x.W)(t,"".concat(l,"_signed.pdf")),setTimeout(()=>v(!0),200)}catch(e){A("Failed to generate PDF. Please try again.")}finally{k(!1)}};return e?(0,l.jsxs)("div",{className:"h-screen bg-slate-100 flex flex-col overflow-hidden",children:[(0,l.jsxs)("header",{className:"bg-white border-b border-slate-200 px-4 py-2.5 flex items-center gap-3 flex-shrink-0",children:[(0,l.jsx)("button",{onClick:()=>{t(null),a(""),b([]),f(null),A(""),v(!1),L(1),M(null)},className:"flex items-center gap-1.5 text-slate-400 hover:text-slate-700 transition-colors flex-shrink-0",title:"Open a different PDF",children:(0,l.jsx)("span",{className:"text-xl leading-none",children:"←"})}),(0,l.jsx)("span",{className:"text-sm font-medium text-slate-600 truncate max-w-[200px] sm:max-w-sm",children:s}),(0,l.jsx)("div",{className:"flex-1"}),(0,l.jsx)("button",{onClick:R,disabled:y||0===g.length,className:"flex-shrink-0 flex items-center gap-2 bg-[#16A34A] hover:bg-[#15803d] text-white font-bold px-5 py-2.5 rounded-xl text-sm transition-colors disabled:opacity-40 disabled:cursor-not-allowed shadow-sm",children:y?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"animate-spin inline-block",children:"⟳"}),(0,l.jsx)("span",{className:"ml-1",children:"Generating…"})]}):"⬇ Download Signed PDF"})]}),(0,l.jsxs)("main",{className:"flex flex-col lg:flex-row flex-1 overflow-hidden",children:[(0,l.jsxs)("div",{className:"lg:w-96 flex-shrink-0 bg-white border-r border-slate-200 flex flex-col overflow-y-auto",children:[(0,l.jsxs)("div",{className:"p-4 flex flex-col gap-5 flex-1",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[11px] font-bold text-slate-400 uppercase tracking-widest mb-2",children:"① Choose method"}),(0,l.jsx)(r.Z,{mode:u,onModeChange:e=>{h(e),f(null)}})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[11px] font-bold text-slate-400 uppercase tracking-widest mb-2",children:"② Create signature"}),"draw"===u&&(0,l.jsx)(i.Z,{onConfirm:W}),"type"===u&&(0,l.jsx)(o.Z,{onConfirm:W}),"upload"===u&&(0,l.jsx)(d.Z,{onConfirm:W})]}),p&&(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[11px] font-bold text-slate-400 uppercase tracking-widest mb-2",children:"③ Place on PDF"}),(0,l.jsx)("div",{className:"bg-green-50 border border-green-200 rounded-xl px-4 py-3 text-sm text-green-700 text-center font-medium animate-pulse",children:"✓ Click anyw
1here on the PDF to place your signature"})]}),_&&B>1&&(0,l.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-3",children:[(0,l.jsx)("p",{className:"text-xs text-blue-800 font-semibold mb-1",children:"Apply to all pages?"}),(0,l.jsx)("p",{className:"text-[11px] text-blue-600 mb-2.5",children:"Resize or reposition the stamp on this page first — the same size & position will be copied."}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("button",{onClick:()=>M(null),className:"flex-1 text-xs border border-blue-300 text-blue-700 rounded-lg py-2 hover:bg-blue-100 transition-colors",children:"This page only"}),(0,l.jsxs)("button",{onClick:()=>{z(_),M(null)},className:"flex-1 text-xs bg-blue-600 text-white rounded-lg py-2 hover:bg-blue-700 transition-colors font-semibold",children:["All ",B," pages"]})]})]}),(g.length>0||D)&&(0,l.jsxs)("div",{className:"mt-auto pt-4 border-t border-slate-100 text-center",children:[g.length>0&&(0,l.jsxs)("p",{className:"text-xs text-slate-400",children:[g.length," signature",1!==g.length?"s":""," placed"]}),D&&(0,l.jsx)("p",{className:"text-red-500 text-xs mt-1",children:D})]})]}),(0,l.jsx)("div",{className:"border-t border-amber-100 px-4 py-3 bg-amber-50 flex-shrink-0",children:(0,l.jsxs)("p",{className:"text-xs text-amber-700 leading-snug",children:[(0,l.jsx)("strong",{children:"Need legal-grade signing?"})," ","Tenders, GST, MCA filings need a DSC token."," ",(0,l.jsx)("a",{href:"https://pdfsign.in/#pricing",className:"font-bold underline text-[#16A34A] hover:text-[#15803d]",children:"PDFSign Desktop →"})]})})]}),(0,l.jsx)("div",{className:"flex-1 overflow-auto p-4 bg-slate-100",children:(0,l.jsx)(m,{pdfBytes:e,pendingSignatureData:p,onSignaturePlaced:Z,signatures:g,onSignaturesChange:b,onPageCountLoaded:L})})]}),j&&(0,l.jsx)(c.Z,{dismissalCount:N,isIndia:P,onClose:()=>{v(!1),w(e=>e+1)}})]}):(0,l.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-white via-slate-50 to-green-50/40 flex flex-col",children:[(0,l.jsxs)("header",{className:"px-6 py-4 flex items-center justify-between max-w-6xl mx-auto w-full",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"text-2xl font-black text-[#16A34A]",children:"PDF"}),(0,l.jsx)("span",{className:"text-2xl font-black text-[#1B2A47]",children:"Sign"}),(0,l.jsx)("span",{className:"ml-2 text-xs bg-green-100 text-green-700 font-semibold px-2 py-0.5 rounded-full",children:"Free"})]}),(0,l.jsx)("a",{href:"https://pdfsign.in",className:"text-sm text-slate-500 hover:text-[#16A34A] transition-colors font-medium",children:"Desktop App →"})]}),(0,l.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center px-4 pb-16",children:[(0,l.jsxs)("h1",{className:"text-4xl sm:text-5xl font-black text-[#1B2A47] text-center leading-tight mb-3",children:["Sign PDF Online",(0,l.jsx)("span",{className:"text-[#16A34A]",children:" — Free"})]}),(0,l.jsxs)("p",{className:"text-slate-500 text-base sm:text-lg text-center max-w-lg mb-10 leading-relaxed",children:["Draw, type or upload your signature. Works on any PDF, in any browser. Your document ",(0,l.jsx)("strong",{className:"text-slate-700",children:"never leaves your device"}),"."]}),(0,l.jsx)("div",{className:"flex gap-2 mb-8 flex-wrap justify-center",children:[{icon:"✏️",label:"Draw",desc:"Mouse or touch"},{icon:"Aa",label:"Type",desc:"Cursive fonts"},{icon:"\uD83D\uDDBC️",label:"Upload",desc:"Image stamp"}].map(e=>{let{icon:t,label:s,desc:a}=e;return(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-white border border-slate-200 rounded-full px-4 py-2 text-sm shadow-sm",children:[(0,l.jsx)("span",{className:"text-base",children:t}),(0,l.jsx)("span",{className:"font-semibold text-slate-700",children:s}),(0,l.jsxs)("span",{className:"text-slate-400 hidden sm:inline",children:["— ",a]})]},s)})}),(0,l.jsxs)("div",{className:"w-full max-w-2xl rounded-2xl bg-white shadow-md cursor-pointer\n              border-2 border-dashed transition-all duration-150\n              ".concat(C?"border-[#16A34A] bg-green-50 shadow-lg scale-[1.01]":"border-slate-300 hover:border-[#16A34A] hover:shadow-lg"),onDrop:e=>{e.preventDefault(),F(!1);let t=e.dataTransfer.files[0];t&&T(t)},onDragOver:e=>{e.preventDefault(),F(!0)},onDragLeave:()=>F(!1),onClick:()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.click()},children:[(0,l.jsx)("input",{ref:E,type:"file",accept:"application/pdf",className:"hidden",onChange:e=>{var t;let s=null===(t=e.target.files)||void 0===t?void 0:t[0];s&&T(s)}}),(0,l.jsxs)("div",{className:"flex flex-col items-center py-14 px-8 text-center",children:[(0,l.jsx)("div",{className:"w-20 h-20 mb-5 transition-transform duration-150 ".concat(C?"scale-110":""),children:(0,l.jsxs)("svg",{viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[(0,l.jsx)("rect",{x:"10",y:"5",width:"44",height:"57",rx:"4",fill:"#F1F5F9",stroke:"#CBD5E1",strokeWidth:"2"}),(0,l.jsx)("path",{d:"M44 5 L54 15 H44 V5Z",fill:"#CBD5E1"}),(0,l.jsx)("rect",{x:"10",y:"33",width:"44",height:"15",rx:"0",fill:"#EF4444"}),(0,l.jsx)("text",{x:"32",y:"44",textAnchor:"middle",fill:"white",fontSize:"9",fontWeight:"bold",fontFamily:"system-ui,Arial,sans-serif",children:"PDF"}),(0,l.jsx)("path",{d:"M40 76 L40 58",stroke:"#16A34A",strokeWidth:"3",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M33 65 L40 58 L47 65",stroke:"#16A34A",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,l.jsx)("p",{className:"text-2xl font-bold text-slate-800 mb-1",children:C?"Release to upload":"Drop your PDF here"}),(0,l.jsx)("p",{className:"text-slate-400 text-sm mb-7",children:"or click to browse your files"}),(0,l.jsx)("button",{type:"button",className:"bg-[#16A34A] hover:bg-[#15803d] text-white font-bold px-12 py-3.5 rounded-xl text-base transition-colors shadow-sm pointer-events-none",children:"Browse files"}),(0,l.jsxs)("p",{className:"text-xs text-slate-400 mt-5",children:["PDF up to ",15," MB"]})]})]}),D&&(0,l.jsx)("p",{className:"text-red-500 text-sm mt-4 text-center font-medium",children:D}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-8 text-slate-500 text-sm",children:[(0,l.jsx)("svg",{className:"w-4 h-4 text-[#16A34A] flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M10 1a9 9 0 100 18A9 9 0 0010 1zm4.293 6.293a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L8.5 11.586l4.293-4.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),(0,l.jsxs)("span",{children:["\uD83D\uDD12 Your PDF is processed ",(0,l.jsx)("strong",{children:"entirely in your browser"})," — never sent to any server"]})]})]})]})}}},function(e){e.O(0,[231,893,971,23,744],function(){return e(e.s=193)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.