PDFDrawingView
PDFDrawingView copied to clipboard
Blank pdf pages
let data = pdfView.createPDF() let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as String let filePath = "\(documentsPath)/myCoolPDF.pdf" do { try data.write(to: URL(fileURLWithPath: filePath)) } catch { print("error") }
after writing data to a document directory. PDF creates but the first three pages shows only drawing. not the pdf pages. But other pages with drawing shows correctly...