stop_page_numbering (PDF::Writer)

          # File lib/pdf/writer.rb, line 2187
    2187:   def stop_page_numbering(stop_total = false, stop_at = :current, scheme = 0)
    2188:     return false unless @page_numbering
    2189:
    2190:     page = @pageset.size - 1
    2191:
    2192:     @page_numbering[scheme][page] ||= {}
    2193:     o = @page_numbering[scheme][page]
    2194:
    2195:     case [ stop_total, stop_at == :current ]
    2196:     when [ true, true ]
    2197:       o[:stop] = :stop_total
    2198:     when [ true, false ]
    2199:       o[:stop] = :stop_total_next
    2200:     when [ false, true ]
    2201:       o[:stop] = :stop_next
    2202:       else
    2203:       o[:stop] = :stop
    2204:     end
    2205:   end