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 voidclearBytes()byte[]getBytes()intgetHeight()StringgetUri()intgetWidth()org.apache.pdfbox.pdmodel.graphics.image.PDImageXObjectgetXObject()voidscale(int width, int height)FSImagescaleToOutputResolution(float dotsPerPixel)voidsetXObject(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()
-
-