iText 8.0.2 API
iText.Kernel.Pdf.Statistics.NumberOfPagesStatisticsEvent Class Reference

Class which represents event for counting the number of pages in a PDF document. More...

Inheritance diagram for iText.Kernel.Pdf.Statistics.NumberOfPagesStatisticsEvent:
iText.Commons.Actions.AbstractStatisticsEvent iText.Commons.Actions.AbstractProductITextEvent iText.Commons.Actions.AbstractITextEvent iText.Commons.Actions.IEvent

Public Member Functions

  NumberOfPagesStatisticsEvent (int numberOfPages, ProductData productData)
  Creates an instance of this class based on the iText.Commons.Actions.Data.ProductData and the number of pages. More...
 
override AbstractStatisticsAggregator  CreateStatisticsAggregatorFromName (String statisticsName)
  Creates statistics aggregator based on provided statistics name. More...
 
override IList< String >  GetStatisticsNames ()
  Gets all statistics names related to this event. More...
 
virtual int  GetNumberOfPages ()
  Gets number of pages in the PDF document during the processing of which the event was sent. More...
 
- Public Member Functions inherited from iText.Commons.Actions.AbstractProductITextEvent
virtual ProductData  GetProductData ()
  Gets a product data which generated the event. More...
 
virtual String  GetProductName ()
  Gets a name of product which generated the event. More...
 

Detailed Description

Class which represents event for counting the number of pages in a PDF document.

Class which represents event for counting the number of pages in a PDF document. Only for internal usage.

Constructor & Destructor Documentation

◆ NumberOfPagesStatisticsEvent()

iText.Kernel.Pdf.Statistics.NumberOfPagesStatisticsEvent.NumberOfPagesStatisticsEvent ( int  numberOfPages,
ProductData  productData 
)
inline

Creates an instance of this class based on the iText.Commons.Actions.Data.ProductData and the number of pages.

Parameters
numberOfPages the number of pages in the PDF document during the processing of which the event was sent
productData is a description of the product which has generated an event

Member Function Documentation

◆ CreateStatisticsAggregatorFromName()

override AbstractStatisticsAggregator iText.Kernel.Pdf.Statistics.NumberOfPagesStatisticsEvent.CreateStatisticsAggregatorFromName ( String  statisticsName )
inlinevirtual

Creates statistics aggregator based on provided statistics name.

Reimplemented from iText.Commons.Actions.AbstractStatisticsEvent.

◆ GetNumberOfPages()

virtual int iText.Kernel.Pdf.Statistics.NumberOfPagesStatisticsEvent.GetNumberOfPages ( )
inlinevirtual

Gets number of pages in the PDF document during the processing of which the event was sent.

Returns
the number of pages

◆ GetStatisticsNames()

override IList iText.Kernel.Pdf.Statistics.NumberOfPagesStatisticsEvent.GetStatisticsNames ( )
inlinevirtual

Gets all statistics names related to this event.

Implements iText.Commons.Actions.AbstractStatisticsEvent.