I'm comfortable coding in PostScript, which is a stack开发者_运维百科-based language for printing on which PDF is based. I'd sure like to be able to generate my PostScript code as a string and then send it to a printer from inside my iPad app.
But is there a way to do so?
I'm not an iOS developer, and haven't look at AirPrint at all, so this might be a naive comment. Could you just open up port 9100 and fire the data directly at the IP address of the printer?
There ought to be a way to convert PS to PDF by slapping on a header, assuming the PS is simple enough. Once the file is a PDF, you should be able to convey it to iBooks.
精彩评论