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
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PdfBoxPDFReplacedElement
(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject srcForm, Element e, Box box, CssContext ctx, SharedContext shared, float w, float h) -
Method Summary
Modifier and TypeMethodDescriptionstatic PdfBoxPDFReplacedElement
create
(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared) void
int
int
int
Returns the current location where the element will be rendered on the canvasboolean
boolean
void
paint
(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) private static int
void
setLocation
(int x, int y) Assigns the new locations where the element will be rendered.
-
Field Details
-
_srcFormObject
private final org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject _srcFormObject -
_width
private final float _width -
_height
private final float _height -
_imageMap
-
_location
-
-
Constructor Details
-
Method Details
-
parsePage
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidth
in interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeight
in interfaceReplacedElement
-
getLocation
Description copied from interface:ReplacedElement
Returns the current location where the element will be rendered on the canvas- Specified by:
getLocation
in interfaceReplacedElement
- Returns:
- see desc
-
setLocation
public void setLocation(int x, int y) Description copied from interface:ReplacedElement
Assigns the new locations where the element will be rendered.- Specified by:
setLocation
in interfaceReplacedElement
- Parameters:
x
- new horizontal posy
- new vertical pos
-
getLinkMap
- Specified by:
getLinkMap
in interfacePdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-
detach
- Specified by:
detach
in interfaceReplacedElement
- Parameters:
c
-
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaint
in interfaceReplacedElement
-
paint
- Specified by:
paint
in interfacePdfBoxReplacedElement
-
getBaseline
public int getBaseline()- Specified by:
getBaseline
in interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()- Specified by:
hasBaseline
in interfaceReplacedElement
-