Package com.openhtmltopdf.pdfboxout
Class PdfBoxPDFReplacedElement
- java.lang.Object
-
- com.openhtmltopdf.pdfboxout.PdfBoxPDFReplacedElement
-
- All Implemented Interfaces:
ReplacedElement
,PdfBoxLinkManager.IPdfBoxElementWithShapedLinks
,PdfBoxReplacedElement
public class PdfBoxPDFReplacedElement extends Object implements PdfBoxReplacedElement, PdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PdfBoxPDFReplacedElement
create(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared)
void
detach(LayoutContext c)
int
getBaseline()
int
getIntrinsicHeight()
int
getIntrinsicWidth()
Map<Shape,String>
getLinkMap()
Point
getLocation()
boolean
hasBaseline()
boolean
isRequiresInteractivePaint()
void
paint(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box)
void
setLocation(int x, int y)
-
-
-
Method Detail
-
create
public static PdfBoxPDFReplacedElement create(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared)
-
getIntrinsicWidth
public int getIntrinsicWidth()
- Specified by:
getIntrinsicWidth
in interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeight
in interfaceReplacedElement
-
getLocation
public Point getLocation()
- Specified by:
getLocation
in interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y)
- Specified by:
setLocation
in interfaceReplacedElement
-
getLinkMap
public Map<Shape,String> getLinkMap()
- Specified by:
getLinkMap
in interfacePdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-
detach
public void detach(LayoutContext c)
- Specified by:
detach
in interfaceReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaint
in interfaceReplacedElement
-
paint
public void paint(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box)
- Specified by:
paint
in interfacePdfBoxReplacedElement
-
getBaseline
public int getBaseline()
- Specified by:
getBaseline
in interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaseline
in interfaceReplacedElement
-
-