public class NumberOfPagesStatisticsEvent extends AbstractStatisticsEvent
| Constructor and Description |
|---|
NumberOfPagesStatisticsEvent(int numberOfPages, ProductData productData)
Creates an instance of this class based on the ProductData and the number of pages.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractStatisticsAggregator |
createStatisticsAggregatorFromName(String statisticsName)
Creates statistics aggregator based on provided statistics name.
|
int |
getNumberOfPages()
Gets number of pages in the PDF document during the processing of which the event was sent.
|
List<String> |
getStatisticsNames()
Gets all statistics names related to this event.
|
getProductData, getProductNamepublic NumberOfPagesStatisticsEvent(int numberOfPages,
ProductData productData)
ProductData and the number of pages.
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
public AbstractStatisticsAggregator createStatisticsAggregatorFromName(String statisticsName)
null.
createStatisticsAggregatorFromName in class AbstractStatisticsEvent
statisticsName - name of statistics based on which aggregator will be created. Shall be one of those returned from AbstractStatisticsEvent.getStatisticsNames()
AbstractStatisticsAggregator
public List<String> getStatisticsNames()
getStatisticsNames in class AbstractStatisticsEvent
List of statistics names
public int getNumberOfPages()
Copyright © 1998–2022 iText Group NV. All rights reserved.