Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Recipe 9. Add Printing Support > Step 6: Print Custom Headers and Footers

Step 6: Print Custom Headers and Footers

While the Cocoa printing system offers you many methods to override in order to print page content, it provides only three override methods for headers and footers: -drawPageBorderWithSize:, -pageHeader, and -pageFooter.

As its name indicates, the -drawPageBorderWithSize: method is not restricted to printing headers and footers. You can also print any kind of mark anywhere in the page. The name of the method is actually a little misleading. Although it allows you to print in what are normally thought of as the margins bordering the page content, it also allows you to overprint the page content itself in order to add watermarks or similar features.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint