next up previous contents index
Next: Remove Bookmarks Up: Bookmarks Previous: Bookmarks   Contents   Index


List Bookmarks

The -list-bookmarks operation prints (to standard output) the bookmarks in a file. The first column gives the level of the tree at which a particular bookmark is. Then the text of the bookmark in quotes, then the page number which the bookmark points to, then (optionally) the word "open" if the bookmark should have its children (at the level immediately below) visible when the file is loaded.

For example, upon executing
\begin{framed}
\small\verb!cpdf -list-bookmarks doc.pdf!
\end{framed}

the result might be:
\begin{framed}
\begin{verbatim}0 ''Part 1'' 1 open
1 ''Part 1A'' 2
1 ''Part 1B'' 3
0 ''Part 2'' 4
1 ''Part 2a'' 5\end{verbatim}
\end{framed}
If the page number is 0, it indicates that clicking on that entry doesn't move to a page.

FIXME: Add a section about PDF encodings, unicode and -raw here.



root 2008-12-01