Business Partnership Agreement Generator

Business Partnership Agreement Generator

Create a comprehensive partnership agreement for your business.

General Information

Partner Details

Capital Contributions & Ownership

Management & Voting Rights

The following individuals shall be partners in the Partnership:

    ${partnersList}

Section 3: Capital Contributions

The initial capital contributions and ownership percentages are as follows:

    ${contributionsList}

Section 4: Management and Voting

4.1 Management: ${pManagement}

4.2 Voting: All Partnership decisions shall be made by a vote of the Partners. The voting power of each partner will be based on: ${pVoting}.

Section 5: Signatures

IN WITNESS WHEREOF, the Partners have executed this Agreement as of the date first above written.

${Array.from(partnerBlocks).map(b => `

${document.getElementById(`partnerName-${b.id.split('-')[2]}`).value}

`).join('')} `; }; downloadPdfBtn.addEventListener('click', async () => { if (!window.jspdf || !window.html2canvas) { alert('PDF generation library is not loaded.'); return; } loader.classList.remove('hidden'); downloadPdfBtn.disabled = true; try { const { jsPDF } = window.jspdf; const canvas = await html2canvas(agreementPreview, { scale: 2 }); const pdf = new jsPDF('p', 'mm', 'a4'); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = pdf.internal.pageSize.getHeight(); const margin = 15; const contentWidth = pdfWidth - (margin * 2); const imgHeight = canvas.height * contentWidth / canvas.width; let heightLeft = imgHeight; let position = 0; pdf.addImage(canvas.toDataURL('image/png'), 'PNG', margin, margin, contentWidth, imgHeight); heightLeft -= (pdfHeight - (margin*2)); while (heightLeft > 0) { position = heightLeft - imgHeight + margin; pdf.addPage(); pdf.addImage(canvas.toDataURL('image/png'), 'PNG', margin, position, contentWidth, imgHeight); heightLeft -= (pdfHeight - (margin*2)); } pdf.save('Business_Partnership_Agreement.pdf'); } catch (error) { console.error("PDF Generation Error:", error); alert("An error occurred generating the PDF."); } finally { loader.classList.add('hidden'); downloadPdfBtn.disabled = false; } }); // --- Event Listeners for Navigation --- window.changeTab = (tabIndex) => { currentTab = tabIndex; updateTabUI(); }; prevBtn.addEventListener('click', () => { if (currentTab > 0) { currentTab--; updateTabUI(); } }); nextBtn.addEventListener('click', () => { if (currentTab < tabs.length - 1) { currentTab++; updateTabUI(); } }); // --- Final Setup --- addPartner('John Doe', '123 Main St, Anytown, USA 12345', '10000', '50'); addPartner('Jane Smith', '456 Oak Ave, Somewhere, USA 67890', '10000', '50'); updateTabUI(); });
Scroll to Top