MCPcopy Create free account
hub / github.com/RUB-NDS/PRET / do_pagecount

Method do_pagecount

postscript.py:389–394  ·  view source on GitHub ↗

Show printer's page counter: pagecount

(self, arg)

Source from the content-addressed store, hash-verified

387
388 # ------------------------[ pagecount ]-------------------------------
389 def do_pagecount(self, arg):
390 "Show printer's page counter: pagecount <number>"
391 output().raw("Hardware page counter: ", '')
392 str_send = 'currentsystemparams dup /PageCount known\n'\
393 '{/PageCount get ==}{(Not available) print} ifelse'
394 output().info(self.cmd(str_send))
395
396 # ====================================================================
397

Callers

nothing calls this directly

Calls 4

cmdMethod · 0.95
outputClass · 0.90
rawMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected