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
Modifier and TypeMethodDescriptionstatic PdfBoxPDFReplacedElementcreate(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared) voidintintintReturns the current location where the element will be rendered on the canvasbooleanbooleanvoidpaint(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) voidsetLocation(int x, int y) Assigns the new locations where the element will be rendered.
-
Method Details
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidthin interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeightin interfaceReplacedElement
-
getLocation
Description copied from interface:ReplacedElementReturns the current location where the element will be rendered on the canvas- Specified by:
getLocationin interfaceReplacedElement- Returns:
- see desc
-
setLocation
public void setLocation(int x, int y) Description copied from interface:ReplacedElementAssigns the new locations where the element will be rendered.- Specified by:
setLocationin interfaceReplacedElement- Parameters:
x- new horizontal posy- new vertical pos
-
getLinkMap
- Specified by:
getLinkMapin interfacePdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-
detach
- Specified by:
detachin interfaceReplacedElement- Parameters:
c-
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaintin interfaceReplacedElement
-
paint
- Specified by:
paintin interfacePdfBoxReplacedElement
-
getBaseline
public int getBaseline()- Specified by:
getBaselinein interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()- Specified by:
hasBaselinein interfaceReplacedElement