org.pdfsam.console.business.pdf.bookmarks
Class BookmarksProcessor
java.lang.Object
org.pdfsam.console.business.pdf.bookmarks.BookmarksProcessor
public class BookmarksProcessor
- extends java.lang.Object
Helper class used to process bookmarks
- Author:
- Andrea Vacondio
Method Summary |
java.util.List |
processBookmarks(int startPage,
int endPage)
Process the bookmarks returning a view of the whole list that contains only pages comprehended among the two limits (included) with page number shifted if necessary. |
java.util.List |
processBookmarks(int startPage,
int endPage,
int pageOffset)
Process the bookmarks returning a view of the whole list that contains only pages comprehended among the two limits (included) with page number shifted if necessary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BookmarksProcessor
public BookmarksProcessor(java.util.List bookmarks,
int numberOfPages)
- Parameters:
bookmarks
- numberOfPages
-
processBookmarks
public java.util.List processBookmarks(int startPage,
int endPage,
int pageOffset)
- Process the bookmarks returning a view of the whole list that contains only pages comprehended among the two limits (included) with page number shifted if necessary.
- Parameters:
startPage
- start page numberendPage
- end page numberpageOffset
- if not 0 pages are shifted of the given amount
- Returns:
processBookmarks
public java.util.List processBookmarks(int startPage,
int endPage)
- Process the bookmarks returning a view of the whole list that contains only pages comprehended among the two limits (included) with page number shifted if necessary.
- Parameters:
startPage
- start page numberendPage
- end page number
- Returns:
- See Also:
processBookmarks(int, int, int)