Package org.jpedal.manipulator
Class AddTableOfContents
java.lang.Object
org.jpedal.manipulator.AddTableOfContents
- All Implemented Interfaces:
org.jpedal.manipulator.Manipulation
Creates a table of contents from bookmarks.
See PdfManipulator.addTableOfContents(int, float[], String, int, float[])
-
Constructor Summary
ConstructorsConstructorDescriptionAddTableOfContents(int page, float[] mediaBox, String baseFont, int fontSize, float[] fontColor) Adds a table of contents based on the bookmarks and including links. -
Method Summary
-
Constructor Details
-
AddTableOfContents
public AddTableOfContents(int page, float[] mediaBox, String baseFont, int fontSize, float[] fontColor) Adds a table of contents based on the bookmarks and including links.If no bookmarks are present then a warning will be emitted.
- Parameters:
page- the page which the new pages will be inserted before, all following pages are shifted by N, where N is the number of pages required for the table of contents. Page indexes start from 1. To append a page to the end of the file, supply 1 higher than the final page index.mediaBox- the media box (dimensions) of the page in the form [lower-left x, lower-left y, upper-right x, upper-right y]. SeePaperSizefor common paper sizes.baseFont- the name of the base font to use. SeeBaseFontfontSize- the font size of the textfontColor- the font color
-