Corporate Bylaws Generator

Corporate Bylaws Generator

Fill in the details across the tabs to generate your corporate bylaws.

Section 1. General Powers. The business and affairs of the corporation shall be managed by its Board of Directors.

Section 2. Number, Tenure and Qualifications. The number of directors of the corporation shall be ${data.directorsNumber}. Each director shall hold office until the next annual meeting of shareholders and until his or her successor shall have been elected and qualified.

Section 3. Quorum. A majority of the fixed number of directors, but not less than ${data.directorQuorum}%, shall constitute a quorum for the transaction of business at any meeting of the Board of Directors.

ARTICLE IV - OFFICERS

Section 1. Officers. The officers of the corporation shall be a ${data.officers.map(o => o.title).join(', ')}, and such other officers as may be elected in accordance with the provisions of this article. The Board of Directors may elect or appoint such other officers as it shall deem desirable, such officers to have the authority and perform the duties prescribed, from time to time, by the Board of Directors.

${data.officers.map(officer => `

Section ${data.officers.indexOf(officer) + 2}. ${officer.title}. ${officer.duties}

`).join('')}

ARTICLE V - CERTIFICATES FOR SHARES

Section 1. Certificates for Shares. The corporation is authorized to issue ${data.stockShares} shares of Common Stock, with a par value of $${data.stockParValue} per share. The shares of the corporation shall be represented by certificates, provided that the Board of Directors may provide by resolution or resolutions that some or all of any or all classes or series of its stock shall be uncertificated shares.

ARTICLE VI - INDEMNIFICATION

The corporation shall indemnify to the fullest extent permitted by the laws of the State of ${data.corpState} any person who was or is a party or is threatened to be made a party to any threatened, pending or completed action, suit or proceeding, whether civil, criminal, administrative or investigative, by reason of the fact that he or she is or was a director, officer, employee or agent of the corporation.

ARTICLE VII - AMENDMENTS TO BYLAWS

These bylaws may be altered, amended or repealed and new bylaws may be adopted by a majority of the entire Board of Directors at any regular meeting of the Board, or at any special meeting of the Board if notice of such alteration, amendment, repeal or adoption of new bylaws be contained in the notice of such special meeting.

The foregoing bylaws were adopted by the Board of Directors of the corporation on the date set forth below.

Date: ____________________

____________________, Secretary

`; document.getElementById('bylaws-output-container').innerHTML = `
${bylawsText}
`; document.getElementById('pdf-download-section').classList.remove('hidden'); showTab(tabs.length - 1); } // Function to handle PDF downloading async function downloadAsPdf() { const pdfLoader = document.getElementById('pdf-loader'); pdfLoader.classList.remove('hidden'); downloadPdfBtn.disabled = true; try { const { jsPDF } = window.jspdf; const doc = new jsPDF({ orientation: 'p', unit: 'pt', format: 'letter' }); const bylawsOutput = document.getElementById('bylaws-output').cloneNode(true); // Simple text conversion for PDF const title = bylawsOutput.querySelector('h2').innerText; const articles = bylawsOutput.querySelectorAll('h3'); const paragraphs = bylawsOutput.querySelectorAll('p'); const signature = bylawsOutput.querySelector('.signature-section').innerText; const margin = 40; const maxWidth = doc.internal.pageSize.getWidth() - margin * 2; let y = margin + 20; doc.setFont('times', 'bold'); doc.setFontSize(16); doc.text(title, doc.internal.pageSize.getWidth() / 2, y, { align: 'center' }); y += 40; const processNode = (node) => { doc.setFont('times', 'normal'); doc.setFontSize(12); let nodeStyle = 'normal'; if (node.tagName === 'H3') { nodeStyle = 'bold'; y += 10; } else if (node.querySelector('strong')) { // This simplified version handles strong tags inside paragraphs } else if (node.classList.contains('signature-section')) { y += 20; } let text = node.innerText; let splitText = doc.splitTextToSize(text, maxWidth); splitText.forEach(line => { if (y > doc.internal.pageSize.getHeight() - margin) { doc.addPage(); y = margin; } if (node.tagName === 'H3') { doc.setFont('times', 'bold'); } else { doc.setFont('times', 'normal'); } doc.text(line, margin, y); y += 14; // Line height }); if (node.tagName === 'H3') { y += 5; } }; bylawsOutput.childNodes.forEach(node => { if (node.nodeType === Node.ELEMENT_NODE) { // Process only element nodes processNode(node); } }); doc.save(`${document.getElementById('corpName').value.trim()}_Bylaws.pdf`); } catch (error) { console.error("Error generating PDF:", error); alert("There was an error generating the PDF. Please try again."); } finally { pdfLoader.classList.add('hidden'); downloadPdfBtn.disabled = false; } } // Event Listeners generateBtn.addEventListener('click', generateBylaws); downloadPdfBtn.addEventListener('click', downloadAsPdf); });
Scroll to Top