Frameworks
React Native
Flutter
Package samples
Cookbook
Version 11
Version 10
Version 9
Version 8
Version 7
Version 6
Version 5
The UserBookmarkDialogFragment
displays a list of user-defined bookmarks that can be used to navigate the document.
To show a user bookmark dialog fragment in your activity, create a new instance of UserBookmarkDialogFragment
by calling newInstance()
and setting the PDFViewCtrl
:
You can set a listener to be notified when a user bookmark is clicked by calling setUserBookmarkListener(UserBookmarkDialogListener)
.
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)
.
It is possible to import and export user bookmarks in JSON format. Typical use case is to save and load the user bookmarks JSON from a server.
The user bookmark JSON is a dictionary with page indices as keys and the bookmark title as the values. For example: {"0":"Bookmark 1","2":"Bookmark 2"}
. Behaviour is undefined otherwise. Note that the page indices will be 0-indexed similar to XFDF.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales