mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-14 14:49:50 -04:00
Add comment
This commit is contained in:
parent
da990906e7
commit
dd7cd6ceeb
@ -159,6 +159,9 @@ final class BrowserViewModel: NSObject, ObservableObject,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Get the webpage in a binary format
|
||||
/// - Returns: PDF of the current page (if text type) or binary data of the content
|
||||
func pdfData() async -> Data? {
|
||||
if metaData?.isTextType == true {
|
||||
return try? await webView.pdf()
|
||||
|
Loading…
x
Reference in New Issue
Block a user