PDF and PNG export
Screenshot of the timeline, saved as PNG or wrapped in a landscape PDF. Related: Shareable URLs, Google Calendar.
Pipeline#
sequenceDiagram participant A as ActionButtons participant R as Next router participant T as TimelineView participant D as download.ts A->>R: /timeline?download=1 R->>T: force week view A->>A: wait 500ms A->>D: downloadAsPng or downloadAsPdf schedule-display D->>D: requestAnimationFrame then toPng D-->>A: file download
Missing #schedule-display toasts “Schedule not found”.
downloadAsPng#
toPngfrom html-to-imagebackgroundColor: #131010pixelRatio: devicePixelRatio || 2skipFonts: true- callbacks
onProgress,onSuccess,onError
downloadAsPdf#
Same capture, then jsPDF landscape A4 (297×210 mm). The PNG is scaled to the page. Filename schedule.pdf.
flowchart LR El["#35;schedule-display"] --> PNG[toPng] PNG --> SavePNG[schedule.png] PNG --> PDF[jsPDF addImage]
This is a picture of the DOM, not a selectable text timetable. Google Calendar / iCal is the structured export.