Some test text!
Xamarin / Guides
Annoations can be viewed as a list in this UI component
The PTAnnotationViewController
class shows a list of all annotations in a document being viewed by a PTPDFViewCtrl
. The list contains any comments that have been added to the annotations.
The annotations list control is part of the Tools library, so make sure you have added the Tools library to your project .
To create a new annotation view controller instance and display it from another view controller, supply a PTPDFViewCtrl
instance to the PTAnnotationViewController
designated initializer:
var annotationViewController = new pdftron.PDF.Controls.PTAnnotationViewController (mPdfViewCtrl);
annotationViewController.AnnotationViewControllerAnnotationSelected += (object sender, AnnotationViewControllerAnnotationSelectedEventArgs e) => {
// perform custom action
this.DismissViewController (true, null);
};
annotationViewController.AnnotationViewControllerDidCancel += (object sender, EventArgs e) => {
this.DismissViewController (true, null);
};
var navigationController = new UINavigationController (annotationViewController);
if (UserInterfaceIdiomIsPad)
{
navigationController.ModalPresentationStyle = UIModalPresentationStyle.Popover;
navigationController.PopoverPresentationController.BarButtonItem = annotationListButton;
}
this.PresentViewController (navigationController, true, null);
PTAnnotationViewController
's
PopoverPresentationController
with either:
SourceRect
AND SourceView
You can set a delegate to be notified by the annotation view controller when annotations are selected with the PTAnnotationViewControllerDelegate
protocol. (See the CompleteReader sample for usage of the PTAnnotationViewController
.)
Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales