Class PdfBoxImage
java.lang.Object
com.openhtmltopdf.pdfboxout.PdfBoxImage
- All Implemented Interfaces:
FSImage
-
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 TypeMethodDescriptionvoidbyte[]getBytes()intgetUri()intgetWidth()org.apache.pdfbox.pdmodel.graphics.image.PDImageXObjectvoidscale(int width, int height) scaleToOutputResolution(float dotsPerPixel) voidsetXObject(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
-
getHeight
-
scale
-
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
-