Class PdfBoxBookmarkManager


  • public class PdfBoxBookmarkManager
    extends java.lang.Object
    • Field Detail

      • _writer

        private final org.apache.pdfbox.pdmodel.PDDocument _writer
      • _dotsPerPoint

        private final float _dotsPerPoint
      • _xml

        private final org.w3c.dom.Document _xml
      • _defaultDestination

        private org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination _defaultDestination
    • Constructor Detail

      • PdfBoxBookmarkManager

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

      • createBoxDestination

        public static org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestination createBoxDestination​(RenderingContext c,
                                                                                                                                     org.apache.pdfbox.pdmodel.PDDocument writer,
                                                                                                                                     PdfBoxFastOutputDevice od,
                                                                                                                                     float dotsPerPoint,
                                                                                                                                     Box root,
                                                                                                                                     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()
      • handleBookmarksInParent

        private void handleBookmarksInParent​(org.w3c.dom.Element element)