|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.xobject.PDXObject
org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage
org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt
public class PDCcitt
An image class for CCITT Fax.
| Field Summary |
|---|
| Fields inherited from class org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage |
|---|
SUB_TYPE |
| Constructor Summary | |
|---|---|
PDCcitt(PDDocument doc,
RandomAccess raf)
Construct from a tiff file. |
|
PDCcitt(PDDocument doc,
RandomAccess raf,
int number)
Construct from a tiff file. |
|
PDCcitt(PDStream ccitt)
Standard constructor. |
|
| Method Summary | |
|---|---|
BufferedImage |
getRGBImage()
Returns an image of the CCITT Fax, or null if TIFFs are not supported. |
void |
write2OutputStream(OutputStream out)
This writes a tiff to out. |
| Methods inherited from class org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage |
|---|
applyMasks, createThumbnailXObject, getBitsPerComponent, getColorSpace, getDecode, getHeight, getImageMask, getMask, getSMaskImage, getStencilColor, getSuffix, getWidth, hasMask, imageMask, mask, setBitsPerComponent, setColorSpace, setHeight, setStencilColor, setWidth, write2file, write2file |
| Methods inherited from class org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject |
|---|
clear, commonXObjectCreation, createXObject, getCOSObject, getCOSStream, getMetadata, getPDStream, getStructParent, setMetadata, setStructParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDCcitt(PDStream ccitt)
ccitt - The PDStream that already contains all ccitt information.
public PDCcitt(PDDocument doc,
RandomAccess raf,
int number)
throws IOException,
IllegalArgumentException
doc - The document to create the image as part of.raf - The random access TIFF file which contains a suitable CCITT compressed imagenumber - TIFF image number, starting from 0
IOException - If there is an error reading the tiff data.
IllegalArgumentException - If there is no such image number
public PDCcitt(PDDocument doc,
RandomAccess raf)
throws IOException
doc - The document to create the image as part of.raf - The random access TIFF file which contains a suitable CCITT compressed image
IOException - If there is an error reading the tiff data.| Method Detail |
|---|
public BufferedImage getRGBImage()
throws IOException
getRGBImage in class PDXObjectImageIOException - If there is an error creating the image.
public void write2OutputStream(OutputStream out)
throws IOException
write2OutputStream in class PDXObjectImageout - the OutputStream that the Image is written to.
IOException - when somethings wrong with out
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||