com.lowagie.tools.plugins

Class HtmlBookmarks

public class HtmlBookmarks extends AbstractTool

Allows you to generate an index file in HTML containing Bookmarks to an existing PDF file.
Constructor Summary
HtmlBookmarks()
Constructs an HtmlBookmarks object.
Method Summary
static voidaddBookmark(String pdf, Section section, HashMap bookmark)
Recursive method to write Bookmark titles to the System.out.
static SectioncreateBookmark(String pdf, Section section, HashMap bookmark)
Adds a line with the title and an anchor.
protected voidcreateFrame()
voidexecute()
protected FilegetDestPathPDF()
static voidmain(String[] args)
Allows you to generate an index file in HTML containing Bookmarks to an existing PDF file.
voidvalueHasChanged(ToolArgument arg)

Constructor Detail

HtmlBookmarks

public HtmlBookmarks()
Constructs an HtmlBookmarks object.

Method Detail

addBookmark

private static void addBookmark(String pdf, Section section, HashMap bookmark)
Recursive method to write Bookmark titles to the System.out.

Parameters: pdf the path to the PDF file section the section to which the bookmarks should be added bookmark a HashMap containing a Bookmark (and possible kids)

createBookmark

private static Section createBookmark(String pdf, Section section, HashMap bookmark)
Adds a line with the title and an anchor.

Parameters: pdf the link to the PDF file section the section that gets the line bookmark the bookmark that has the data for the line

Returns: a subsection of section

createFrame

protected void createFrame()

See Also: createFrame

execute

public void execute()

See Also: execute

getDestPathPDF

protected File getDestPathPDF()

See Also: getDestPathPDF

main

public static void main(String[] args)
Allows you to generate an index file in HTML containing Bookmarks to an existing PDF file.

Parameters: args

valueHasChanged

public void valueHasChanged(ToolArgument arg)

See Also: valueHasChanged