Package com.openhtmltopdf.pdfboxout
Class PdfBoxImage
- java.lang.Object
-
- com.openhtmltopdf.pdfboxout.PdfBoxImage
-
-
Constructor Summary
Constructors Constructor Description PdfBoxImage(byte[] image, String uri)
PdfBoxImage(byte[] bytes, String uri, float width, float height, org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject xobject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearBytes()
byte[]
getBytes()
int
getHeight()
String
getUri()
int
getWidth()
org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject
getXObject()
void
scale(int width, int height)
FSImage
scaleToOutputResolution(float dotsPerPixel)
void
setXObject(org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject xobject)
-
-
-
Constructor Detail
-
PdfBoxImage
public PdfBoxImage(byte[] image, String uri) throws IOException
- Throws:
IOException
-
PdfBoxImage
public PdfBoxImage(byte[] bytes, String uri, float width, float height, org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject xobject)
-
-
Method Detail
-
scaleToOutputResolution
public FSImage scaleToOutputResolution(float dotsPerPixel)
-
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
public String getUri()
-
-