-
-
Save asingh33/bb2bc03dafa1dd53fe051eac7e9ea41a to your computer and use it in GitHub Desktop.
To load a PDF document using PDFKit in Swift and SwiftUI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func load(fromContents contents: Any, ofType typeName: String?) throws { | |
// Load your document from contents | |
print(self.fileURL) | |
self.pdfDoc = PDFDocument(url: self.fileURL) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gist for To load a PDF document using PDFKit in Swift and SwiftUI