public class TiffImageData extends RawImageData
CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, typeCcitt
bpc, colorSpace, colorTransform, data, decode, decodeParms, deflated, dpiX, dpiY, filter, height, imageAttributes, imageMask, imageSize, interpolation, inverted, mask, mySerialId, originalType, profile, rotation, transparency, url, width, XYRatio
Modifier | Constructor and Description |
---|---|
protected |
TiffImageData(byte[] bytes, boolean recoverFromImageError, int page, boolean direct) |
protected |
TiffImageData(URL url, boolean recoverFromImageError, int page, boolean direct) |
Modifier and Type | Method and Description |
---|---|
static int |
getNumberOfPages(byte[] bytes)
Gets the number of pages the TIFF document has.
|
static int |
getNumberOfPages(RandomAccessFileOrArray raf)
Gets the number of pages the TIFF document has.
|
int |
getPage() |
boolean |
isDirect() |
boolean |
isRecoverFromImageError() |
void |
setOriginalType(ImageType originalType) |
getTypeCcitt, isRawImage, setTypeCcitt
canBeMask, canImageBeInline, getBpc, getColorSpace, getColorTransform, getData, getDecode, getDecodeParms, getDpiX, getDpiY, getFilter, getHeight, getImageAttributes, getImageMask, getOriginalType, getProfile, getRotation, getTransparency, getUrl, getWidth, getXYRatio, isDeflated, isInterpolation, isInverted, isMask, isSoftMask, makeMask, setBpc, setColorSpace, setColorTransform, setDecode, setDeflated, setDpi, setFilter, setHeight, setImageAttributes, setImageMask, setInterpolation, setInverted, setProfile, setRotation, setTransparency, setUrl, setWidth, setXYRatio
protected TiffImageData(URL url, boolean recoverFromImageError, int page, boolean direct)
protected TiffImageData(byte[] bytes, boolean recoverFromImageError, int page, boolean direct)
public static int getNumberOfPages(RandomAccessFileOrArray raf)
raf
- a RandomAccessFileOrArray
containing a TIFF image.
public static int getNumberOfPages(byte[] bytes)
bytes
- a byte array containing a TIFF image.
public boolean isRecoverFromImageError()
public int getPage()
public boolean isDirect()
public void setOriginalType(ImageType originalType)
Copyright © 1998–2018 iText Group NV. All rights reserved.