Personalized Travel Packing Guide

Personalized Travel Packing Guide

Generate a custom packing list for your next adventure in a few simple steps.

Tell us about your trip

What will you be doing?

Your personalized packing list will appear here. Complete the previous steps to generate it.

${tripLength} days

`; for (const category in list) { if (list[category].length > 0) { html += `

${category}

    `; list[category].forEach(item => { const icon = item.icon || '✔️'; const quantity = item.qty ? ` (x${item.qty})` : ''; html += `
  • ${icon} ${item.item}${quantity}
  • `; }); html += `
`; } } container.innerHTML = html; } function downloadPDF() { const { jsPDF } = window.jspdf; const pdf = new jsPDF({ orientation: 'p', unit: 'mm', format: 'a4' }); const contentToPrint = document.getElementById('dashboard-content'); if (!contentToPrint || !contentToPrint.querySelector('h2')) { alert("Please generate a packing list first."); return; } html2canvas(contentToPrint, { scale: 2, useCORS: true }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = (canvas.height * pdfWidth) / canvas.width; pdf.addImage(imgData, 'PNG', 10, 10, pdfWidth - 20, pdfHeight - 20); pdf.save('My-Packing-List.pdf'); }).catch(err => { console.error("Error generating PDF:", err); }); }
Scroll to Top