stop_page_numbering (PDF::Writer)

          # File lib/pdf/writer.rb, line 2252
    2252:   def stop_page_numbering(stop_total = false, stop_at = :current, scheme = 0)
    2253:     return false unless @page_numbering
    2254:
    2255:     page = @pageset.size - 1
    2256:
    2257:     @page_numbering[scheme][page] ||= {}
    2258:     o = @page_numbering[scheme][page]
    2259:
    2260:     case [ stop_total, stop_at == :current ]
    2261:     when [ true, true ]
    2262:       o[:stop] = :stop_total
    2263:     when [ true, false ]
    2264:       o[:stop] = :stop_total_next
    2265:     when [ false, true ]
    2266:       o[:stop] = :stop_next
    2267:       else
    2268:       o[:stop] = :stop
    2269:     end
    2270:   end