Class NumberOfPagesStatisticsAggregator
java.lang.Object
com.itextpdf.commons.actions.AbstractStatisticsAggregator
com.itextpdf.kernel.pdf.statistics.NumberOfPagesStatisticsAggregator
Statistics aggregator which aggregates number of pages in PDF documents.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregate
(AbstractStatisticsEvent event) Aggregates number of pages from the provided event.void
merge
(AbstractStatisticsAggregator aggregator) Merges data about amounts of ranges of pages from the provided aggregator into this aggregator.Retrieves Map where keys are ranges of pages and values are the amounts of such PDF documents.
-
Constructor Details
-
NumberOfPagesStatisticsAggregator
public NumberOfPagesStatisticsAggregator()
-
-
Method Details
-
aggregate
Aggregates number of pages from the provided event.- Specified by:
-
aggregate
in classAbstractStatisticsAggregator
- Parameters:
-
event
-NumberOfPagesStatisticsEvent
instance
-
retrieveAggregation
Retrieves Map where keys are ranges of pages and values are the amounts of such PDF documents.- Specified by:
-
retrieveAggregation
in classAbstractStatisticsAggregator
- Returns:
-
aggregated
Map
-
merge
Merges data about amounts of ranges of pages from the provided aggregator into this aggregator.- Specified by:
-
merge
in classAbstractStatisticsAggregator
- Parameters:
-
aggregator
-NumberOfPagesStatisticsAggregator
from which data will be taken.
-