Top Inners Fields Constructors Methods
com.openhtmltopdf.pdfboxout

public Class PdfBoxLinkManager

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
com.openhtmltopdf.css.style.CalculatedStyle, com.openhtmltopdf.extend.NamespaceHandler, .ReplacedElement, com.openhtmltopdf.layout.SharedContext, com.openhtmltopdf.render.BlockBox, .Box, .PageBox, .RenderingContext, org.apache.pdfbox.pdmodel.PDPage, org.apache.pdfbox.pdmodel.common.PDRectangle, org.apache.pdfbox.pdmodel.interactive.action.PDAction, .PDActionGoTo, .PDActionJavaScript, .PDActionURI, org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation, .PDAnnotationLink, .PDBorderStyleDictionary, org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestination, org.w3c.dom.Element, java.awt.*, java.awt.geom.*, java.io.IOException, java.util.*, .List, .Map.Entry

Deprecated

Use fast link manager instead.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
PdfBoxLinkManager.IPdfBoxElementWithShapedLinks

All Elements which can have a shaped image map implement this

public static class

Field Summary

Modifier and TypeField and Description
private final float
private final List<PdfBoxLinkManager.LinkDetails>
private final Map<PDPage, Set<String>>
private final PdfBoxOutputDevice
private final Box
private final SharedContext

Constructor Summary

AccessConstructor and Description
public
PdfBoxLinkManager(SharedContext ctx, float dotsPerPoint, Box root, PdfBoxOutputDevice od)

Method Summary

Modifier and TypeMethod and Description
private Rectangle2D
private Rectangle2D
calcTotalLinkArea(RenderingContext c, Box box, float pageHeight, AffineTransform transform)

private Rectangle2D
checkLinkArea(PDPage page, RenderingContext c, Box box, float pageHeight, AffineTransform transform, Shape linkShape)

private PDPageXYZDestination
private String
createRectKey(Rectangle2D rect, Shape linkShape, AffineTransform transform)

public static Rectangle2D
createTargetArea(RenderingContext c, Box box, float pageHeight, AffineTransform transform, Box _root, PdfBoxOutputDevice _od)

private static boolean
public void
processLinkLater(RenderingContext c, Box box, PDPage page, float pageHeight, AffineTransform transform)

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

Field Detail

_dotsPerPointback to summary
private final float _dotsPerPoint
_linkTargetAreasback to summary
private final Map<PDPage, Set<String>> _linkTargetAreas
_odback to summary
private final PdfBoxOutputDevice _od
_rootback to summary
private final Box _root
_sharedContextback to summary
private final SharedContext _sharedContext

Constructor Detail

PdfBoxLinkManagerback to summary
public PdfBoxLinkManager(SharedContext ctx, float dotsPerPoint, Box root, PdfBoxOutputDevice od)

Method Detail

addback to summary
private Rectangle2D add(Rectangle2D r1, Rectangle2D r2)
calcTotalLinkAreaback to summary
private Rectangle2D calcTotalLinkArea(RenderingContext c, Box box, float pageHeight, AffineTransform transform)
checkLinkAreaback to summary
private Rectangle2D checkLinkArea(PDPage page, RenderingContext c, Box box, float pageHeight, AffineTransform transform, Shape linkShape)
createDestinationback to summary
private PDPageXYZDestination createDestination(RenderingContext c, Box box)
createRectKeyback to summary
private String createRectKey(Rectangle2D rect, Shape linkShape, AffineTransform transform)
createTargetAreaback to summary
public static Rectangle2D createTargetArea(RenderingContext c, Box box, float pageHeight, AffineTransform transform, Box _root, PdfBoxOutputDevice _od)
isPointEqualback to summary
private static boolean isPointEqual(Point2D.Float p1, Point2D.Float p2)
processLinkLaterback to summary
public void processLinkLater(RenderingContext c, Box box, PDPage page, float pageHeight, AffineTransform transform)
removeDoublicatePointsback to summary
private static void removeDoublicatePoints(List<Point2D.Float> points)
com.openhtmltopdf.pdfboxout back to summary

public Class PdfBoxLinkManager.LinkDetails

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Box
pack-priv RenderingContext
c

pack-priv PDPage
pack-priv float
pack-priv AffineTransform

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boxback to summary
pack-priv Box box
cback to summary
pack-priv RenderingContext c
pageback to summary
pack-priv PDPage page
pageHeightback to summary
pack-priv float pageHeight
transformback to summary
pack-priv AffineTransform transform

Constructor Detail

LinkDetailsback to summary
public LinkDetails()