PrintOperation.getNPagesToPrint

Returns the number of pages that will be printed.

Note that this value is set during print preparation phase (gtk.types.PrintStatus.Preparing), so this function should never be called before the data generation phase (gtk.types.PrintStatus.GeneratingData). You can connect to the signalGtk.PrintOperation::status-changed signal and call gtk.print_operation.PrintOperation.getNPagesToPrint when print status is gtk.types.PrintStatus.GeneratingData.

This is typically used to track the progress of print operation.

class PrintOperation
int
getNPagesToPrint
()

Return Value

Type: int

the number of pages that will be printed