mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
Cleaning up
This commit is contained in:
20
docsplits/pysplits/c07.tex
Normal file
20
docsplits/pysplits/c07.tex
Normal file
@@ -0,0 +1,20 @@
|
||||
# CHAPTER 6. Bookmarks
|
||||
|
||||
def getBookmarks(pdf):
|
||||
"""Get the bookmarks for a PDF as a list of tuples of the form:
|
||||
(level : int, page : int, text : string, openstatus : bool)"""
|
||||
|
||||
def setBookmarks(pdf, marks):
|
||||
"""Set the bookmarks for a PDF as a list of tuples of the form:
|
||||
(level : int, page : int, text : string, openstatus : bool)"""
|
||||
|
||||
def getBookmarksJSON(pdf):
|
||||
"""Get the bookmarks in JSON format."""
|
||||
|
||||
def setBookmarksJSON(pdf, data):
|
||||
"""setBookmarksJSON(pdf, data) sets the bookmarks from JSON bookmark data."""
|
||||
|
||||
def tableOfContents(pdf, font, fontsize, title, bookmark):
|
||||
"""tableOfContents(pdf, font, fontsize, title, bookmark) 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."""
|
Reference in New Issue
Block a user