Some test text!

platform
search

User bookmark list

Contents

Show user bookmark dialog
Listener
Read-only
This tutorial only applies to Xamarin.Android.

The UserBookmarkDialogFragment displays a list of user-defined bookmarks that can be used to navigate the document. The user-defined bookmarks are PDFTron specific features that may not be shown in other PDF viewer apps. If you want to manage PDF bookmarks so that they can be processed in other standard PDF viewers, see the document outline guide.

linkShow user bookmark dialog

To show a user bookmark dialog fragment in your activity, create a new instance of UserBookmarkDialogFragment by calling newInstance() and setting the PDFViewCtrl:

var bookmarkDialog = UserBookmarkDialogFragment.NewInstance();
bookmarkDialog.SetPdfViewCtrl(mPdfViewCtrl);
bookmarkDialog.UserBookmarkClicked += (sender, e) =>
{
    Console.WriteLine("UserBookmarkClicked on page: " + e.PageNum);
    mPdfViewCtrl.SetCurrentPage(e.PageNum);
    bookmarkDialog.Dismiss();
};
bookmarkDialog.SetStyle((int)DialogFragmentStyle.NoTitle, Resource.Style.CustomAppTheme);
bookmarkDialog.Show(this.SupportFragmentManager, "bookmark_list_dialog");

linkListener

You can set a listener to be notified when a user bookmark is clicked by calling setUserBookmarkListener(UserBookmarkDialogListener).

linkRead-only

If the document has write access, users can add new user bookmarks using floating action button. To specify whether the document is read-only call setReadOnly(boolean).

Get the anwsers you need: Support

Contents

Show user bookmark dialog
Listener
Read-only