Add comment

This commit is contained in:
Balazs Perlaki-Horvath 2024-06-19 12:49:25 +02:00
parent da990906e7
commit dd7cd6ceeb

View File

@ -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()