Changes

Jump to: navigation, search

An Android Custom Document Printing Tutorial

12 bytes removed, 17:18, 29 April 2016
no edit summary
<htmlet>androidstudioandroid44</htmlet>
Figure 51-2
<htmlet>androidstudioandroid44</htmlet>
When writing the pages to the PDF document, the onWrite() method must take steps to ensure that only those pages specified by the user are printed. To make this possible, the Printing framework passes through as an argument an array of PageRange objects indicating the ranges of pages to be printed. In the above onWrite() implementation, a method named pagesInRange() is called for each page to verify that the page is within the specified ranges. The code for the pagesInRange() method will be implemented later in this chapter.
<htmlet>androidstudioandroid44</htmlet>

Navigation menu