Class BookmarkManager
Inheritance
System.Object
BookmarkManager
Assembly: PDFViewCtrlTools.dll
public class BookmarkManager : Object
Constructors
Declaration
Declaration
protected BookmarkManager(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type |
Name |
Description |
System.IntPtr |
javaReference |
|
Android.Runtime.JniHandleOwnership |
transfer |
|
Properties
Declaration
public override JniPeerMembers JniPeerMembers { get; }
Property Value
Type |
Description |
Java.Interop.JniPeerMembers |
|
Declaration
protected override IntPtr ThresholdClass { get; }
Property Value
Type |
Description |
System.IntPtr |
|
Declaration
protected override Type ThresholdType { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
AddPdfBookmark(Context, PDFViewCtrl, Int64, Int32)
Declaration
public static void AddPdfBookmark(Context context, PDFViewCtrl pdfViewCtrl, long pageObjNum, int pageNumber)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.Int64 |
pageObjNum |
|
System.Int32 |
pageNumber |
|
AddUserBookmark(Context, PDFViewCtrl, String, Int64, Int32)
Declaration
public static void AddUserBookmark(Context context, PDFViewCtrl pdfViewCtrl, string filePath, long pageObjNum, int pageNumber)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.String |
filePath |
|
System.Int64 |
pageObjNum |
|
System.Int32 |
pageNumber |
|
AddUserBookmark(Context, String, Int64, Int32)
Declaration
public static void AddUserBookmark(Context context, string filePath, long pageObjNum, int pageNumber)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
System.Int64 |
pageObjNum |
|
System.Int32 |
pageNumber |
|
Declaration
public static string ExportPdfBookmarks(PDFDoc pdfDoc)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFDoc |
pdfDoc |
|
Returns
Type |
Description |
System.String |
|
ExportUserBookmarks(Context, String)
Declaration
public static string ExportUserBookmarks(Context context, string filePath)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static IList<UserBookmarkItem> FromJSON(string bookmarkJson)
Parameters
Type |
Name |
Description |
System.String |
bookmarkJson |
|
Returns
Declaration
public static IList<Bookmark> GetBookmarkList(PDFDoc pdfDoc, Bookmark firstSibling)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFDoc |
pdfDoc |
|
pdftronprivate.PDF.Bookmark |
firstSibling |
|
Returns
Type |
Description |
System.Collections.Generic.IList<pdftronprivate.PDF.Bookmark> |
|
Declaration
public static IList<Bookmark> GetBookmarkListByTitle(PDFDoc pdfDoc, string queryText, bool isSearchActive)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFDoc |
pdfDoc |
|
System.String |
queryText |
|
System.Boolean |
isSearchActive |
|
Returns
Type |
Description |
System.Collections.Generic.IList<pdftronprivate.PDF.Bookmark> |
|
GetPdfBookmarkedPageNumbers(PDFDoc)
Declaration
public static IList<Integer> GetPdfBookmarkedPageNumbers(PDFDoc pdfDoc)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFDoc |
pdfDoc |
|
Returns
Type |
Description |
System.Collections.Generic.IList<Java.Lang.Integer> |
|
Declaration
public static IList<UserBookmarkItem> GetPdfBookmarks(Bookmark rootBookmark)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.Bookmark |
rootBookmark |
|
Returns
Declaration
public static IList<UserBookmarkItem> GetPdfBookmarks(Bookmark rootBookmark, string queryText)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.Bookmark |
rootBookmark |
|
System.String |
queryText |
|
Returns
Declaration
public static IList<UserBookmarkItem> GetPdfBookmarks(PDFDoc pdfDoc)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFDoc |
pdfDoc |
|
Returns
Declaration
public static IList<UserBookmarkItem> GetPdfBookmarks(PDFDoc pdfDoc, string queryText)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFDoc |
pdfDoc |
|
System.String |
queryText |
|
Returns
Declaration
public static Bookmark GetRootPdfBookmark(PDFDoc pdfDoc, bool createNew)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFDoc |
pdfDoc |
|
System.Boolean |
createNew |
|
Returns
Type |
Description |
pdftronprivate.PDF.Bookmark |
|
GetUserBookmarks(Context, String)
Declaration
public static IList<UserBookmarkItem> GetUserBookmarks(Context context, string filePath)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
Returns
GetUserBookmarks(Context, String, String)
Declaration
public static IList<UserBookmarkItem> GetUserBookmarks(Context context, string filePath, string queryText)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
System.String |
queryText |
|
Returns
Declaration
public static void ImportPdfBookmarks(PDFViewCtrl pdfViewCtrl, string bookmarkJson)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.String |
bookmarkJson |
|
ImportUserBookmarks(Context, PDFViewCtrl, String, String)
Declaration
public static void ImportUserBookmarks(Context context, PDFViewCtrl pdfViewCtrl, string filePath, string bookmarkJson)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.String |
filePath |
|
System.String |
bookmarkJson |
|
ImportUserBookmarks(Context, String, String)
Declaration
public static void ImportUserBookmarks(Context context, string filePath, string bookmarkJson)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
System.String |
bookmarkJson |
|
OnPageDeleted(Context, PDFViewCtrl, String, Long, Int32, Int32)
Declaration
public static void OnPageDeleted(Context context, PDFViewCtrl pdfViewCtrl, string filePath, Long objNumber, int pageNumber, int pageCount)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.String |
filePath |
|
Java.Lang.Long |
objNumber |
|
System.Int32 |
pageNumber |
|
System.Int32 |
pageCount |
|
OnPageDeleted(Context, String, Long, Int32, Int32)
Declaration
public static void OnPageDeleted(Context context, string filePath, Long objNumber, int pageNumber, int pageCount)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
Java.Lang.Long |
objNumber |
|
System.Int32 |
pageNumber |
|
System.Int32 |
pageCount |
|
OnPageDeleted(PDFViewCtrl, Long)
Declaration
public static void OnPageDeleted(PDFViewCtrl pdfViewCtrl, Long objNumber)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
Java.Lang.Long |
objNumber |
|
OnPageMoved(Context, PDFViewCtrl, String, Int64, Int64, Int32, Int32)
Declaration
public static void OnPageMoved(Context context, PDFViewCtrl pdfViewCtrl, string filePath, long objNumber, long newObjNumber, int oldPageNumber, int newPageNumber)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.String |
filePath |
|
System.Int64 |
objNumber |
|
System.Int64 |
newObjNumber |
|
System.Int32 |
oldPageNumber |
|
System.Int32 |
newPageNumber |
|
OnPageMoved(Context, String, Int64, Int64, Int32, Int32)
Declaration
public static void OnPageMoved(Context context, string filePath, long objNumber, long newObjNumber, int oldPageNumber, int newPageNumber)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
System.Int64 |
objNumber |
|
System.Int64 |
newObjNumber |
|
System.Int32 |
oldPageNumber |
|
System.Int32 |
newPageNumber |
|
OnPageMoved(PDFViewCtrl, Int64, Int64, Int32, Boolean)
Declaration
public static void OnPageMoved(PDFViewCtrl pdfViewCtrl, long objNumber, long newObjNumber, int newPageNumber, bool rebuild)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.Int64 |
objNumber |
|
System.Int64 |
newObjNumber |
|
System.Int32 |
newPageNumber |
|
System.Boolean |
rebuild |
|
RemovePdfBookmark(Context, PDFViewCtrl, Int64, Int32)
Declaration
public static void RemovePdfBookmark(Context context, PDFViewCtrl pdfViewCtrl, long pageObjNum, int pageNumber)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.Int64 |
pageObjNum |
|
System.Int32 |
pageNumber |
|
Declaration
public static bool RemoveRootPdfBookmark(PDFViewCtrl pdfViewCtrl, bool shouldTakeUndoSnapshot)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.Boolean |
shouldTakeUndoSnapshot |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveUserBookmark(Context, PDFViewCtrl, String, Int64, Int32)
Declaration
public static void RemoveUserBookmark(Context context, PDFViewCtrl pdfViewCtrl, string filePath, long pageObjNum, int pageNumber)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.String |
filePath |
|
System.Int64 |
pageObjNum |
|
System.Int32 |
pageNumber |
|
RemoveUserBookmark(Context, String, Int64, Int32)
Declaration
public static void RemoveUserBookmark(Context context, string filePath, long pageObjNum, int pageNumber)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
System.Int64 |
pageObjNum |
|
System.Int32 |
pageNumber |
|
RemoveUserBookmarks(Context, String)
Declaration
public static void RemoveUserBookmarks(Context context, string filePath)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
Declaration
public static void SavePdfBookmarks(PDFViewCtrl pdfViewCtrl, IList<UserBookmarkItem> data, bool shouldTakeUndoSnapshot, bool rebuild)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.Collections.Generic.IList<UserBookmarkItem> |
data |
|
System.Boolean |
shouldTakeUndoSnapshot |
|
System.Boolean |
rebuild |
|
SaveUserBookmarks(Context, PDFViewCtrl, String, IList<UserBookmarkItem>)
Declaration
public static void SaveUserBookmarks(Context context, PDFViewCtrl pdfViewCtrl, string filePath, IList<UserBookmarkItem> data)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.String |
filePath |
|
System.Collections.Generic.IList<UserBookmarkItem> |
data |
|
SaveUserBookmarks(Context, String, IList<UserBookmarkItem>)
Declaration
public static void SaveUserBookmarks(Context context, string filePath, IList<UserBookmarkItem> data)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
System.Collections.Generic.IList<UserBookmarkItem> |
data |
|
Declaration
public static string ToJSON(IList<UserBookmarkItem> bookmarkItems)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<UserBookmarkItem> |
bookmarkItems |
|
Returns
Type |
Description |
System.String |
|
UpdateUserBookmarkPageObj(Context, PDFViewCtrl, String, Int64, Int64, Int32)
Declaration
public static void UpdateUserBookmarkPageObj(Context context, PDFViewCtrl pdfViewCtrl, string filePath, long pageObjNum, long newPageObjNum, int newPageNum)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.String |
filePath |
|
System.Int64 |
pageObjNum |
|
System.Int64 |
newPageObjNum |
|
System.Int32 |
newPageNum |
|
UpdateUserBookmarkPageObj(Context, String, Int64, Int64, Int32)
Declaration
public static void UpdateUserBookmarkPageObj(Context context, string filePath, long pageObjNum, long newPageObjNum, int newPageNum)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
filePath |
|
System.Int64 |
pageObjNum |
|
System.Int64 |
newPageObjNum |
|
System.Int32 |
newPageNum |
|
UpdateUserBookmarksFilePath(Context, String, String)
Declaration
public static void UpdateUserBookmarksFilePath(Context context, string oldPath, string newPath)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
oldPath |
|
System.String |
newPath |
|