PDF printing via PDFKit
// select a PDF
dim f as FolderItem = GetOpenFolderItem("")
if f = nil then Return
// open PDF
dim doc as new PDFDocumentMBS(f)
// define some print setting via PrintInfo
dim PrintInfo as new NSPrintInfoMBS
// start print operation
dim printOperation as NSPrintOperationMBS = doc.PrintOperation(printinfo)
// set options on operation
printOperation.showsPrintPanel = true
printOperation.showsProgressPanel = true
// and run it
call printOperation.runOperation
That is same command as we use for PDFKit.Print in our FileMaker plugin.
