Post

Replies

Boosts

Views

Activity

how do I print the contents of the PdfView?
XCode - Swift private var mPdfView = PDFView() private var mDocumentData: Data? mDocumentData = MakePdfDocument() mPdfView.document = PDFDocument(data: mDocumentData!) let printInfo = UIPrintInfo(dictionary: nil) printInfo.outputType = UIPrintInfo.OutputType.general printInfo.jobName = “JobName” let printController = UIPrintInteractionController.shared printController.printInfo = printInfo printController.printingItem = mPdfView printController.showsNumberOfCopies = true printController.present(animated: true, completionHandler: nil) **When print is executed, only the blank screen is output, not the generated PDF. How can I print the generated PDF content?**
1
0
1.2k
Jun ’22