International Border Crossing Checklist

International Border Crossing Checklist

Generate a personalized checklist to ensure a smooth border crossing.

Your Travel Plans

Select all that apply

People & Pets

Goods & Currency

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

${item.details}

`; }); } container.innerHTML = html; downloadBtn.classList.remove('hidden'); } function downloadPDF() { const { jsPDF } = window.jspdf; const pdf = new jsPDF({ orientation: 'p', unit: 'mm', format: 'a4' }); const contentToPrint = document.getElementById('dashboard-content'); if (!contentToPrint) return; // Temporarily disable checkboxes for printing const checkboxes = contentToPrint.querySelectorAll('input[type="checkbox"]'); checkboxes.forEach(cb => cb.style.display = 'none'); html2canvas(contentToPrint, { scale: 2, useCORS: true }).then(canvas => { // Re-enable checkboxes checkboxes.forEach(cb => cb.style.display = 'block'); 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 > 277 ? 277 : pdfHeight - 20); pdf.save('Border-Crossing-Checklist.pdf'); }); }
Scroll to Top