Online Notary Public Verification Tool

Online Notary Public Verification Tool

Verify the status of a Notary Public in the United States.

Enter Notary Details

Commission ID: ${searchedId}

State: ${searchedState}

`; } pdfContentWrapper.innerHTML = htmlContent; }; // --- PDF DOWNLOAD --- const downloadPDF = async () => { if (typeof window.jspdf === 'undefined' || typeof window.html2canvas === 'undefined') { console.error("jsPDF or html2canvas is not loaded."); return; } const { jsPDF } = window.jspdf; const btn = document.getElementById('pdf-download-btn'); btn.textContent = 'Generating...'; btn.disabled = true; const contentToPrint = document.getElementById('pdf-content-wrapper'); try { const pdf = new jsPDF({ orientation: 'portrait', unit: 'pt', format: 'letter' }); await pdf.html(contentToPrint, { callback: function(pdf) { const notaryId = document.getElementById('notary-id').value.trim(); pdf.save(`notary_verification_${notaryId || 'report'}.pdf`); }, margin: [60, 60, 60, 60], autoPaging: 'text', width: 495, // Letter width (612pt) - margins (120pt) windowWidth: 700 }); } catch (error) { console.error("Error generating PDF:", error); } finally { btn.textContent = 'Download Verification Report'; btn.disabled = false; } }; // --- EVENT LISTENERS --- tabs.forEach(tab => tab.addEventListener('click', (e) => { if (!e.target.disabled) { showTab(parseInt(tab.dataset.tab, 10)); } })); prevBtn.addEventListener('click', () => { if (currentTab > 1) showTab(currentTab - 1); }); verifyBtn.addEventListener('click', performVerification); pdfDownloadBtn.addEventListener('click', downloadPDF); // --- RUN INITIALIZATION --- initialize(); });
Scroll to Top