Hello,
We are porting from iOS to macOS and need to be able to print PDF documents directly from the app. Below is the relevant method.
Just don't see how to define the "contextInfo" as the PDFDocument?
- (void)printDocumentWithSettings:(NSDictionary<NSPrintInfoAttributeKey, id> *)printSettings
showPrintPanel:(BOOL)showPrintPanel
delegate:(id)delegate
didPrintSelector:(SEL)didPrintSelector
contextInfo:(void *)contextInfo;
Here is the pdf document to print: PDFDocument *pdfDoc = [[PDFDocument alloc] initWithURL:url];
Sending our user to the AdobePDF viewer to search through the system folders is not a solution.
Please help us connect the dots!
Thanks,
John