public class PageDestinationsSplitPages extends Object implements NextOutputStrategy
OutlinePageDestinations. The logic behind is that if a destination points to page x and the user splits at
the level, he probably wants to split at page x-1 (i.e. the end of the preceding chapter or paragraph), resulting in a pdf document per chapter (or paragraph...).| Constructor and Description |
|---|
PageDestinationsSplitPages(OutlinePageDestinations destinations) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureIsValid()
Ensures that the strategy implementation is in a valid state.
|
boolean |
isClosing(Integer page) |
boolean |
isOpening(Integer page) |
public PageDestinationsSplitPages(OutlinePageDestinations destinations)
public void ensureIsValid()
throws TaskExecutionException
NextOutputStrategyensureIsValid in interface NextOutputStrategyTaskExecutionException - if not in a valid state.public boolean isOpening(Integer page)
isOpening in interface NextOutputStrategypage - the current processing pagepublic boolean isClosing(Integer page)
isClosing in interface NextOutputStrategypage - the current processing pageCopyright © 2015. All Rights Reserved.