requestSave() (or the alias savePdf()) to start the flow. The SDK writes the file once the user selects a destination. Observe saveState to update your UI throughout the process.
Basic save
Suggesting a file name
Pass asuggestedFileName to pre-fill the file name in the platform picker:
savePdf() is an alias for requestSave() with the same parameters — use whichever reads more clearly at your call site.
KPdfSaveState variants
saveState is a StateFlow<KPdfSaveState>. Handle each variant to give users accurate feedback.