cpdf-source/dotnetsplits/c07.tex

69 lines
1.7 KiB
TeX
Raw Normal View History

2022-03-07 18:16:03 +01:00
CHAPTER 6. Bookmarks
Cpdf.startGetBookmarkInfo(Cpdf.Pdf)
2022-03-09 13:07:27 +01:00
Starts the bookmark retrieval process for a given PDF.
2022-03-07 18:16:03 +01:00
Cpdf.numberBookmarks
2022-03-09 13:07:27 +01:00
Gets the number of bookmarks for the PDF given to startGetBookmarkInfo.
2022-03-07 18:16:03 +01:00
Cpdf.getBookmarkLevel(Int32)
2022-03-09 13:07:27 +01:00
Gets the bookmark level for the given bookmark (0...(n - 1)).
2022-03-07 18:16:03 +01:00
Cpdf.getBookmarkPage(Cpdf.Pdf, Int32)
2022-03-09 13:07:27 +01:00
Gets the bookmark target page for the given PDF (which must be the same as the
PDF passed to startSetBookmarkInfo) and bookmark (0...(n - 1)).
2022-03-07 18:16:03 +01:00
Cpdf.getBookmarkText(Int32)
Returns the text of bookmark (0...(n - 1)).
Cpdf.getBookmarkOpenStatus(Int32)
True if the bookmark is open.
Cpdf.endGetBookmarkInfo
Ends the bookmark retrieval process, cleaning up.
Cpdf.startSetBookmarkInfo(Int32)
2022-03-09 13:07:27 +01:00
Starts the bookmark setting process for n bookmarks.
2022-03-07 18:16:03 +01:00
Cpdf.setBookmarkLevel(Int32, Int32)
2022-03-09 13:07:27 +01:00
Set bookmark level for the given bookmark (0...(n - 1)).
2022-03-07 18:16:03 +01:00
Cpdf.setBookmarkPage(Cpdf.Pdf, Int32, Int32)
2022-03-09 13:07:27 +01:00
Sets the bookmark target page for the given PDF (which must be the same as the
PDF to be passed to endSetBookmarkInfo) and bookmark (0...(n - 1)).
2022-03-07 18:16:03 +01:00
Cpdf.setBookmarkOpenStatus(Int32, Boolean)
Sets the open status of bookmark (0...(n - 1)).
Cpdf.setBookmarkText(Int32, String)
Sets the text of bookmark (0...(n - 1)).
Cpdf.endSetBookmarkInfo(Cpdf.Pdf)
2022-03-09 13:07:27 +01:00
Ends the bookmark setting process, writing the bookmarks to the given PDF.
2022-03-07 18:16:03 +01:00
Cpdf.getBookmarksJSON(Cpdf.Pdf)
Returns the bookmark data in JSON format.
Cpdf.setBookmarksJSON(Cpdf.Pdf, Byte[])
Sets the bookmarks from JSON bookmark data.
Cpdf.tableOfContents(Cpdf.Pdf, Cpdf.Font, Double, String, Boolean)
2022-03-09 13:07:27 +01:00
Typesets a table of contents from existing bookmarks and prepends it to the
document. If bookmark is set, the table of contents gets its own bookmark.