Custom

data class Custom(val path: String) : StorageLocation

Caller-supplied absolute path. Two shapes are accepted:

  • Full file path — pass an empty string for filename in PdfDocument.save. The library writes the bytes to path verbatim.

  • Directory path — pass a non-empty filename. The library joins path and filename with a / and writes there.

Parent directories are created automatically if missing. Use this when a path comes from a system picker (ACTION_CREATE_DOCUMENT on Android, UIDocumentPickerViewController on iOS) or from configuration.

Constructors

Link copied to clipboard
constructor(path: String)

Properties

Link copied to clipboard

absolute file or directory path.