Top Inners Fields Constructors Methods
com.openhtmltopdf.pdfboxout

public Class PdfBoxBookmarkManager

extends Object
Class Inheritance
Imports
java.awt.Rectangle, java.util.ArrayList, .Collections, .List, java.util.logging.Level, com.openhtmltopdf.util.LogMessageId, .XRLog, org.apache.pdfbox.pdmodel.PDDocument, org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement, org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination, .PDPageFitHeightDestination, .PDPageXYZDestination, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDDocumentOutline, .PDOutlineItem, .PDOutlineNode, org.w3c.dom.Document, .Element, com.openhtmltopdf.css.style.CalculatedStyle, com.openhtmltopdf.layout.SharedContext, com.openhtmltopdf.render.Box, .PageBox, .RenderingContext, com.openhtmltopdf.render.displaylist.PagedBoxCollector

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final List<PdfBoxBookmarkManager.Bookmark>
private PDDestination
private final float
private final PdfBoxFastOutputDevice
private final SharedContext
private final PDDocument
private final Document

Constructor Summary

AccessConstructor and Description
public
PdfBoxBookmarkManager(Document xml, PDDocument doc, SharedContext sharedContext, float dotsPerPoint, PdfBoxFastOutputDevice od)

Method Summary

Modifier and TypeMethod and Description
public static PDPageXYZDestination
createBoxDestination(RenderingContext c, 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.

private void
private void
public void
private void
private void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_bookmarksback to summary
private final List<PdfBoxBookmarkManager.Bookmark> _bookmarks
_defaultDestinationback to summary
private PDDestination _defaultDestination
_dotsPerPointback to summary
private final float _dotsPerPoint
_odback to summary
private final PdfBoxFastOutputDevice _od
_sharedContextback to summary
private final SharedContext _sharedContext
_writerback to summary
private final PDDocument _writer
_xmlback to summary
private final Document _xml

Constructor Detail

PdfBoxBookmarkManagerback to summary
public PdfBoxBookmarkManager(Document xml, PDDocument doc, SharedContext sharedContext, float dotsPerPoint, PdfBoxFastOutputDevice od)

Method Detail

createBoxDestinationback to summary
public static PDPageXYZDestination createBoxDestination(RenderingContext c, 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.

handleBookmarksInParentback to summary
private void handleBookmarksInParent(Element element)
loadBookmarkback to summary
private void loadBookmark(PdfBoxBookmarkManager.Bookmark parent, Element bookmark)
loadBookmarksback to summary
public void loadBookmarks()
writeBookmarkback to summary
private void writeBookmark(RenderingContext c, Box root, PDOutlineNode parent, PdfBoxBookmarkManager.Bookmark bookmark)
writeBookmarksback to summary
private void writeBookmarks(RenderingContext c, Box root, PDOutlineNode parent, List<PdfBoxBookmarkManager.Bookmark> bookmarks)
writeOutlineback to summary
public void writeOutline(RenderingContext c, Box root)
com.openhtmltopdf.pdfboxout back to summary

private Class PdfBoxBookmarkManager.Bookmark

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private List<PdfBoxBookmarkManager.Bookmark>
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
Bookmark(String name, String href)

Method Summary

Modifier and TypeMethod and Description
public void
public List<PdfBoxBookmarkManager.Bookmark>
public String
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_childrenback to summary
private List<PdfBoxBookmarkManager.Bookmark> _children
_HRefback to summary
private final String _HRef
_nameback to summary
private final String _name

Constructor Detail

Bookmarkback to summary
public Bookmark(String name, String href)

Method Detail

addChildback to summary
public void addChild(PdfBoxBookmarkManager.Bookmark child)
getChildrenback to summary
public List<PdfBoxBookmarkManager.Bookmark> getChildren()
getHRefback to summary
public String getHRef()
getNameback to summary
public String getName()