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 PdfBoxPDFReplacedElementcreate(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared)voiddetach(LayoutContext c)intgetBaseline()intgetIntrinsicHeight()intgetIntrinsicWidth()Map<Shape,String>getLinkMap()PointgetLocation()booleanhasBaseline()booleanisRequiresInteractivePaint()voidpaint(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box)voidsetLocation(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:
getIntrinsicWidthin interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeightin interfaceReplacedElement
-
getLocation
public Point getLocation()
- Specified by:
getLocationin interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y)- Specified by:
setLocationin interfaceReplacedElement
-
getLinkMap
public Map<Shape,String> getLinkMap()
- Specified by:
getLinkMapin interfacePdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-
detach
public void detach(LayoutContext c)
- Specified by:
detachin interfaceReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaintin interfaceReplacedElement
-
paint
public void paint(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box)
- Specified by:
paintin interfacePdfBoxReplacedElement
-
getBaseline
public int getBaseline()
- Specified by:
getBaselinein interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaselinein interfaceReplacedElement
-
-