Twitter Thread Generator

Twitter Thread Generator

Craft the perfect thread from a single idea. Let AI handle the rest.

Your generated thread will appear here.

Fill in the details on the left and click generate!

Twitter Thread Report

Original Topic

${tweet}

`; pdfThreadContent.insertAdjacentHTML('beforeend', tweetHtml); }); const contentToPrint = document.getElementById('pdf-output'); contentToPrint.style.display = 'block'; html2canvas(contentToPrint, { scale: 2 }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'portrait', unit: 'pt', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const ratio = canvas.height / canvas.width; const finalImgWidth = pdfWidth - 80; // Margins const finalImgHeight = finalImgWidth * ratio; pdf.addImage(imgData, 'PNG', 40, 40, finalImgWidth, finalImgHeight); pdf.save('Twitter-Thread.pdf'); contentToPrint.style.display = 'none'; }).catch(err => { console.error("Error generating PDF:", err); contentToPrint.style.display = 'none'; }); }); // Initialize Lucide icons lucide.createIcons(); });
Scroll to Top