Package com.openhtmltopdf.pdfboxout
Class PdfBoxBookmarkManager
java.lang.Object
com.openhtmltopdf.pdfboxout.PdfBoxBookmarkManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<PdfBoxBookmarkManager.Bookmark> private org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestinationprivate final floatprivate final PdfBoxFastOutputDeviceprivate final SharedContextprivate final org.apache.pdfbox.pdmodel.PDDocumentprivate final Document -
Constructor Summary
ConstructorsConstructorDescriptionPdfBoxBookmarkManager(Document xml, org.apache.pdfbox.pdmodel.PDDocument doc, SharedContext sharedContext, float dotsPerPoint, PdfBoxFastOutputDevice od) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestinationcreateBoxDestination(RenderingContext c, org.apache.pdfbox.pdmodel.PDDocument writer, PdfBoxFastOutputDevice od, float dotsPerPoint, Box root, Box box) Creates aPDPageXYZDestinationwith the Y set to the min Y of the border box and the X and Z set to null.private voidhandleBookmarksInParent(Element element) private voidloadBookmark(PdfBoxBookmarkManager.Bookmark parent, Element bookmark) voidprivate voidwriteBookmark(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, PdfBoxBookmarkManager.Bookmark bookmark) private voidwriteBookmarks(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, List<PdfBoxBookmarkManager.Bookmark> bookmarks) voidwriteOutline(RenderingContext c, Box root)
-
Field Details
-
_bookmarks
-
_writer
private final org.apache.pdfbox.pdmodel.PDDocument _writer -
_dotsPerPoint
private final float _dotsPerPoint -
_od
-
_xml
-
_defaultDestination
private org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination _defaultDestination
-
-
Constructor Details
-
Method Details
-
writeOutline
-
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 aPDPageXYZDestinationwith 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
-
loadBookmark
-