Java Code Examples for com.shockwave.pdfium.PdfDocument#Bookmark
The following examples show how to use
com.shockwave.pdfium.PdfDocument#Bookmark .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PDFViewActivity.java From AndroidPdfViewerV2 with Apache License 2.0 | 5 votes |
public void printBookmarksTree(List<PdfDocument.Bookmark> tree, String sep) { for (PdfDocument.Bookmark b : tree) { Log.e(TAG, String.format("%s %s, p %d", sep, b.getTitle(), b.getPageIdx())); if (b.hasChildren()) { printBookmarksTree(b.getChildren(), sep + "-"); } } }
Example 2
Source File: PDFViewActivity.java From AndroidPdfViewerV1 with Apache License 2.0 | 5 votes |
public void printBookmarksTree(List<PdfDocument.Bookmark> tree, String sep) { for (PdfDocument.Bookmark b : tree) { Log.e(TAG, String.format("%s %s, p %d", sep, b.getTitle(), b.getPageIdx())); if (b.hasChildren()) { printBookmarksTree(b.getChildren(), sep + "-"); } } }
Example 3
Source File: PDFView.java From AndroidPdfViewer with Apache License 2.0 | 5 votes |
/** Will be empty until document is loaded */ public List<PdfDocument.Bookmark> getTableOfContents() { if (pdfFile == null) { return Collections.emptyList(); } return pdfFile.getBookmarks(); }
Example 4
Source File: PDFViewActivity.java From AndroidPdfViewer with Apache License 2.0 | 5 votes |
public void printBookmarksTree(List<PdfDocument.Bookmark> tree, String sep) { for (PdfDocument.Bookmark b : tree) { Log.e(TAG, String.format("%s %s, p %d", sep, b.getTitle(), b.getPageIdx())); if (b.hasChildren()) { printBookmarksTree(b.getChildren(), sep + "-"); } } }
Example 5
Source File: PDFView.java From AndroidPdfViewerV2 with Apache License 2.0 | 4 votes |
public List<PdfDocument.Bookmark> getTableOfContents() { if (pdfDocument == null) { return new ArrayList<>(); } return pdfiumCore.getTableOfContents(pdfDocument); }
Example 6
Source File: PDFView.java From AndroidPdfViewerV1 with Apache License 2.0 | 4 votes |
public List<PdfDocument.Bookmark> getTableOfContents() { if (pdfDocument == null) { return new ArrayList<>(); } return pdfiumCore.getTableOfContents(pdfDocument); }
Example 7
Source File: PdfFile.java From AndroidPdfViewer with Apache License 2.0 | 4 votes |
public List<PdfDocument.Bookmark> getBookmarks() { if (pdfDocument == null) { return new ArrayList<>(); } return pdfiumCore.getTableOfContents(pdfDocument); }
Example 8
Source File: Quran.java From Muslim-Athkar-Islamic-Reminders with MIT License | 3 votes |
public void printBookmarksTree(List<PdfDocument.Bookmark> tree, String sep) { for (PdfDocument.Bookmark b : tree) { surahs.add(new Surah(b.getTitle(),b.getPageIdx())); if (b.hasChildren()) { printBookmarksTree(b.getChildren(), sep + "-"); } } presenter.prepareSearchAdapter(inflater,surahs); }