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.PDDestination
private final float
private final PdfBoxFastOutputDevice
private final SharedContext
private final org.apache.pdfbox.pdmodel.PDDocument
private 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.PDPageXYZDestination
createBoxDestination
(RenderingContext c, org.apache.pdfbox.pdmodel.PDDocument writer, PdfBoxFastOutputDevice od, float dotsPerPoint, Box root, Box box) Creates aPDPageXYZDestination
with the Y set to the min Y of the border box and the X and Z set to null.private void
handleBookmarksInParent
(Element element) private void
loadBookmark
(PdfBoxBookmarkManager.Bookmark parent, Element bookmark) void
private void
writeBookmark
(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, PdfBoxBookmarkManager.Bookmark bookmark) private void
writeBookmarks
(RenderingContext c, Box root, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode parent, List<PdfBoxBookmarkManager.Bookmark> bookmarks) void
writeOutline
(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 aPDPageXYZDestination
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
-
loadBookmark
-