PDFDocument.init(url:)
を使用しようとすると、http
で動作することに気づきましたが、https
のURLでは動作しませんでした。なぜ誰が知っていますか?PDFKitのPDFDocument init(URL:URL)がHTTPSで動作しない
import PDFKit
let httpURL = URL(string: "http://www.axmag.com/download/pdfurl-guide.pdf")!
let doc1 = PDFDocument(url: httpURL) //makes a PDFDocument
let httpsURL = URL(string: "https://www.gnu.org/s/libmicrohttpd/tutorial.pdf")!
let doc2 = PDFDocument(url: httpsURL) //nil