Class PdfBoxBookmarkManager


  • public class PdfBoxBookmarkManager
    extends Object
    • Method Summary

      Modifier and Type Method Description
      static org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestination createBoxDestination​(com.openhtmltopdf.render.RenderingContext c, org.apache.pdfbox.pdmodel.PDDocument writer, PdfBoxFastOutputDevice od, float dotsPerPoint, com.openhtmltopdf.render.Box root, com.openhtmltopdf.render.Box box)
      Creates a PDPageXYZDestination with the Y set to the min Y of the border box and the X and Z set to null.
      void loadBookmarks()  
      void writeOutline​(com.openhtmltopdf.render.RenderingContext c, com.openhtmltopdf.render.Box root)  
    • Constructor Detail

      • PdfBoxBookmarkManager

        public PdfBoxBookmarkManager​(Document xml,
                                     org.apache.pdfbox.pdmodel.PDDocument doc,
                                     com.openhtmltopdf.layout.SharedContext sharedContext,
                                     float dotsPerPoint,
                                     PdfBoxFastOutputDevice od)
    • Method Detail

      • writeOutline

        public void writeOutline​(com.openhtmltopdf.render.RenderingContext c,
                                 com.openhtmltopdf.render.Box root)
      • createBoxDestination

        public static org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestination createBoxDestination​(com.openhtmltopdf.render.RenderingContext c,
                                                                                                                                     org.apache.pdfbox.pdmodel.PDDocument writer,
                                                                                                                                     PdfBoxFastOutputDevice od,
                                                                                                                                     float dotsPerPoint,
                                                                                                                                     com.openhtmltopdf.render.Box root,
                                                                                                                                     com.openhtmltopdf.render.Box box)
        Creates a PDPageXYZDestination with the Y set to the min Y of the border box and the X and Z set to null. Takes into account any transforms set for the box as well as inserted overflow pages.
      • loadBookmarks

        public void loadBookmarks()