public class

AnnotManager

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.tools.AnnotManager

Class Overview

This class is responsible for generating local annotation changes XFDF string and merging remote annotation changes XFDF string

Summary

Nested Classes
interface AnnotManager.AnnotItem Annotation custom properties  
interface AnnotManager.AnnotationAction Annotation actions  
interface AnnotManager.AnnotationSyncingListener This interface can be used to monitor local annotation changes, which can then be forwarded to a remote server. 
enum AnnotManager.EditPermissionMode  
Public Methods
void exportToFile(File targetFile)
Export all annotations to a file
AnnotManager.EditPermissionMode getEditMode()
PDFViewCtrl.AnnotationManagerMode getUndoMode()
void jumpToAnnot(String annotId, int page)
Jump to an annotation by id and selects it
void jumpToAnnot(String annotId)
Jump to an annotation by id
void onRemoteChange(String incoming)
Used when annotation change event is received from remote service
void setAnnotationSyncingListener(AnnotManager.AnnotationSyncingListener listener)
Sets AnnotationSyncingListener
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void exportToFile (File targetFile)

Export all annotations to a file

Parameters
targetFile the target file

public AnnotManager.EditPermissionMode getEditMode ()

public PDFViewCtrl.AnnotationManagerMode getUndoMode ()

public void jumpToAnnot (String annotId, int page)

Jump to an annotation by id and selects it

Parameters
annotId annotation id
page xfdf zero-indexed page number

public void jumpToAnnot (String annotId)

Jump to an annotation by id

Parameters
annotId the annotation id

public void onRemoteChange (String incoming)

Used when annotation change event is received from remote service

Parameters
incoming the XFDF command string

public void setAnnotationSyncingListener (AnnotManager.AnnotationSyncingListener listener)

Sets AnnotationSyncingListener

Parameters
listener the listener