Platforms to show: All Mac Windows Linux Cross-Platform
FAQ.How to print to PDF?
// get Xojo printer setupdim p as new PrinterSetup// now put it into NSPrintInfo to manipulatedim n as new NSPrintInfoMBSn.SetupString = p.SetupString// change destination to filedim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")n.SetSaveDestination(f)// move backp.SetupString = n.SetupString// and print as usualdim g as Graphics = OpenPrinter(p)g.DrawString "Hello World", 20, 20
And you can use normal graphics class for that.