I passed the pdfData, still crash
guard let doc = PDFDocument(url: documentURL),
let data = doc.dataRepresentation() else { return nil }
printer.printingItem = data
I passed the pdfData, still crash
guard let doc = PDFDocument(url: documentURL),
let data = doc.dataRepresentation() else { return nil }
printer.printingItem = data