openBase64
fun openBase64(text: String, password: String = "", epubSettings: EpubSettings = EpubSettings()): KiteDocument
open over Base64 text.
Takes a bare Base64 payload or a whole data: URI (data:application/pdf;base64,JVBERi0...), in the standard or the URL-safe alphabet, with or without padding, and ignores any line breaks inside it. That covers what a JSON API, an <embed> tag or a clipboard paste will hand you.
Throws
when the text is not valid Base64, or decodes to something that is neither format.