|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.tools.plugins.AbstractTool
com.lowagie.tools.plugins.HtmlBookmarks
public class HtmlBookmarks
Allows you to generate an index file in HTML containing Bookmarks to an existing PDF file.
| Field Summary |
|---|
| Fields inherited from class com.lowagie.tools.plugins.AbstractTool |
|---|
arguments, internalFrame, MENU_EXECUTE, MENU_EXECUTE_PRINT, MENU_EXECUTE_PRINT_SILENT, MENU_EXECUTE_SHOW, menuoptions, versionsarray |
| Fields inherited from interface com.lowagie.tools.ToolMenuItems |
|---|
ABOUT, ARGUMENTS, CLOSE, EXECUTE, EXECUTEPRINT, EXECUTEPRINTSILENT, EXECUTESHOW, FILE, HELP, TOOL, TOOLS, USAGE, VERSION |
| Constructor Summary | |
|---|---|
HtmlBookmarks()
Constructs an HtmlBookmarks object. |
|
| Method Summary | |
|---|---|
private static void |
addBookmark(java.lang.String pdf,
Section section,
java.util.HashMap bookmark)
Recursive method to write Bookmark titles to the System.out. |
private static Section |
createBookmark(java.lang.String pdf,
Section section,
java.util.HashMap bookmark)
Adds a line with the title and an anchor. |
protected void |
createFrame()
Creates the internal frame. |
void |
execute()
Executes the tool (in most cases this generates a PDF file). |
protected java.io.File |
getDestPathPDF()
Gets the PDF file that should be generated (or null if the output isn't a PDF file). |
static void |
main(java.lang.String[] args)
Allows you to generate an index file in HTML containing Bookmarks to an existing PDF file. |
void |
valueHasChanged(ToolArgument arg)
Indicates that the value of an argument has changed. |
| Methods inherited from class com.lowagie.tools.plugins.AbstractTool |
|---|
actionPerformed, addVersion, getArgs, getArguments, getInternalFrame, getMenubar, getUsage, getValue, setArguments, setArguments, setInternalFrame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlBookmarks()
| Method Detail |
|---|
protected void createFrame()
AbstractTool
createFrame in class AbstractToolAbstractTool.createFrame()public void execute()
AbstractTool
execute in class AbstractToolAbstractTool.execute()
private static void addBookmark(java.lang.String pdf,
Section section,
java.util.HashMap bookmark)
pdf - the path to the PDF filesection - the section to which the bookmarks should be addedbookmark - a HashMap containing a Bookmark (and possible kids)
private static Section createBookmark(java.lang.String pdf,
Section section,
java.util.HashMap bookmark)
pdf - the link to the PDF filesection - the section that gets the linebookmark - the bookmark that has the data for the line
public void valueHasChanged(ToolArgument arg)
AbstractTool
valueHasChanged in class AbstractToolarg - the argument that has changedAbstractTool.valueHasChanged(com.lowagie.tools.arguments.ToolArgument)public static void main(java.lang.String[] args)
args -
protected java.io.File getDestPathPDF()
throws java.lang.InstantiationException
AbstractTool
getDestPathPDF in class AbstractTooljava.lang.InstantiationExceptionAbstractTool.getDestPathPDF()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||