public static interface

ToolManager.PdfDocModificationListener

com.pdftron.pdf.tools.ToolManager.PdfDocModificationListener
Known Indirect Subclasses

Class Overview

This interface can be used to monitor any modification events that change the structure of the PDF document such as page manipulation, bookmark modification, etc.

For listening to annotation modification events see ToolManager.AnnotationModificationListener.

Summary

Public Methods
abstract void onAllAnnotationsRemoved()
Called when all annotations in the document have been removed.
abstract void onAnnotationAction()
Called when an annotations action has been taken place.
abstract void onBookmarkModified(List<UserBookmarkItem> bookmarkItems)
Called when PDF bookmarks have been modified.
abstract void onPageLabelsChanged()
Called when page labels have been changed
abstract void onPageMoved(int from, int to)
Called when a page has been moved.
abstract void onPagesAdded(List<Integer> pageList)
Called when pages have been added to the document.
abstract void onPagesCropped()
Called when document pages haven cropped.
abstract void onPagesDeleted(List<Integer> pageList)
Called when pages have been deleted from the document.
abstract void onPagesMoved(List<Integer> pagesMoved, int to, int currentPage)
Called when pages have been moved.
abstract void onPagesRotated(List<Integer> pageList)
Called when pages have been rotated.

Public Methods

public abstract void onAllAnnotationsRemoved ()

Called when all annotations in the document have been removed.

public abstract void onAnnotationAction ()

Called when an annotations action has been taken place.

public abstract void onBookmarkModified (List<UserBookmarkItem> bookmarkItems)

Called when PDF bookmarks have been modified.

Parameters
bookmarkItems the new bookmarks after modification

public abstract void onPageLabelsChanged ()

Called when page labels have been changed

public abstract void onPageMoved (int from, int to)

Called when a page has been moved.

Parameters
from The page number on which the page moved from
to The page number on which the page moved to

public abstract void onPagesAdded (List<Integer> pageList)

Called when pages have been added to the document.

Parameters
pageList The list of pages added to the document

public abstract void onPagesCropped ()

Called when document pages haven cropped.

public abstract void onPagesDeleted (List<Integer> pageList)

Called when pages have been deleted from the document.

Parameters
pageList The list of pages deleted from the document

public abstract void onPagesMoved (List<Integer> pagesMoved, int to, int currentPage)

Called when pages have been moved.

Parameters
pagesMoved The page numbers which the pages moved from
to The page number on which the page moved to
currentPage The current page the viewer is on

public abstract void onPagesRotated (List<Integer> pageList)

Called when pages have been rotated.

Parameters
pageList The list of rotated pages