Package com.openhtmltopdf.pdfboxout
Class PdfBoxImage
java.lang.Object
com.openhtmltopdf.pdfboxout.PdfBoxImage
- All Implemented Interfaces:
FSImage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private float
private float
private final String
private org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject
-
Constructor Summary
ConstructorsConstructorDescriptionPdfBoxImage
(byte[] image, String uri) PdfBoxImage
(byte[] bytes, String uri, float width, float height, org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject xobject) -
Method Summary
Modifier and TypeMethodDescriptionvoid
byte[]
getBytes()
int
getUri()
int
getWidth()
org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject
void
scale
(int width, int height) scaleToOutputResolution
(float dotsPerPixel) void
setXObject
(org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject xobject)
-
Field Details
-
_bytes
private byte[] _bytes -
_uri
-
_intrinsicWidth
private float _intrinsicWidth -
_intrinsicHeight
private float _intrinsicHeight -
_xobject
private org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject _xobject
-
-
Constructor Details
-
PdfBoxImage
- Throws:
IOException
-
PdfBoxImage
public PdfBoxImage(byte[] bytes, String uri, float width, float height, org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject xobject)
-
-
Method Details
-
scaleToOutputResolution
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
scale
public void scale(int width, int height) -
getBytes
public byte[] getBytes() -
clearBytes
public void clearBytes() -
getXObject
public org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject getXObject() -
setXObject
public void setXObject(org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject xobject) -
getUri
-