Using AirPrint to Print a Banner

Last Revision:
Version 1.1, 2014-03-12
First public release.
Build Requirements:
Xcode 5.0 or later, iOS 7 or later
Runtime Requirements:
iOS 7 or later

PrintBanner shows how to print a banner of arbitrary length to a roll printer. The code formats the job for landscape orientation and then calculates a font size that fills the width of the paper. It then determines the length of the text and pads the length so the final cut length results in a pleasing layout.