COSObjectable
public class PDCcitt extends PDXObjectImage
SUB_TYPE
Constructor | Description |
---|---|
PDCcitt(PDStream ccitt) |
Standard constructor.
|
PDCcitt(PDDocument doc,
RandomAccess raf) |
Construct from a tiff file.
|
PDCcitt(PDDocument doc,
RandomAccess raf,
int number) |
Construct from a tiff file.
|
Modifier and Type | Method | Description |
---|---|---|
java.awt.image.BufferedImage |
getRGBImage() |
Returns an image of the CCITT Fax, or null if TIFFs are not supported.
|
void |
write2OutputStream(java.io.OutputStream out) |
This writes a tiff to out.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, commonXObjectCreation, createXObject, getCOSObject, getCOSStream, getMetadata, getPDStream, getStructParent, setMetadata, setStructParent
applyMasks, createThumbnailXObject, getBitsPerComponent, getColorSpace, getDecode, getHeight, getImageMask, getMask, getSMaskImage, getStencilColor, getSuffix, getWidth, hasMask, imageMask, mask, setBitsPerComponent, setColorSpace, setHeight, setStencilColor, setWidth, write2file, write2file
public PDCcitt(PDStream ccitt)
ccitt
- The PDStream that already contains all ccitt information.public PDCcitt(PDDocument doc, RandomAccess raf, int number) throws java.io.IOException, java.lang.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 0java.io.IOException
- If there is an error reading the tiff data.java.lang.IllegalArgumentException
- If there is no such image numberpublic PDCcitt(PDDocument doc, RandomAccess raf) throws java.io.IOException
doc
- The document to create the image as part of.raf
- The random access TIFF file which contains a suitable CCITT compressed imagejava.io.IOException
- If there is an error reading the tiff data.public java.awt.image.BufferedImage getRGBImage() throws java.io.IOException
getRGBImage
in class PDXObjectImage
java.io.IOException
- If there is an error creating the image.public void write2OutputStream(java.io.OutputStream out) throws java.io.IOException
write2OutputStream
in class PDXObjectImage
out
- the OutputStream that the Image is written to.java.io.IOException
- when somethings wrong with out