Class AddTableOfContents

java.lang.Object
org.jpedal.manipulator.AddTableOfContents
All Implemented Interfaces:
org.jpedal.manipulator.Manipulation

public class AddTableOfContents extends Object implements org.jpedal.manipulator.Manipulation
Creates a table of contents from bookmarks.

See PdfManipulator.addTableOfContents(int, float[], String, int, float[])

  • 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]. See PaperSize for common paper sizes.
      baseFont - the name of the base font to use. See BaseFont
      fontSize - the font size of the text
      fontColor - the font color