Package com.itextpdf.io.image
Class TiffImageData
java.lang.Object
com.itextpdf.io.image.ImageData
com.itextpdf.io.image.RawImageData
com.itextpdf.io.image.TiffImageData
-
Field Summary
Fields inherited from class com.itextpdf.io.image.RawImageData
CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, typeCcitt
Fields inherited from class com.itextpdf.io.image.ImageData
bpc, colorEncodingComponentsNumber, colorTransform, data, decode, decodeParms, deflated, dpiX, dpiY, filter, height, imageAttributes, imageMask, imageSize, interpolation, inverted, mask, mySerialId, originalType, profile, rotation, transparency, url, width, XYRatio
-
Constructor Summary
ModifierConstructorDescriptionprotected
TiffImageData
(byte[] bytes, boolean recoverFromImageError, int page, boolean direct) protected
TiffImageData
(URL url, boolean recoverFromImageError, int page, boolean direct) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getNumberOfPages
(byte[] bytes) Gets the number of pages the TIFF document has.static int
Gets the number of pages the TIFF document has.int
getPage()
boolean
isDirect()
boolean
void
setOriginalType
(ImageType originalType) Methods inherited from class com.itextpdf.io.image.RawImageData
getTypeCcitt, isRawImage, setTypeCcitt
Methods inherited from class com.itextpdf.io.image.ImageData
canBeMask, canImageBeInline, getBpc, getColorEncodingComponentsNumber, getColorTransform, getData, getDecode, getDecodeParms, getDpiX, getDpiY, getFilter, getHeight, getImageAttributes, getImageMask, getOriginalType, getProfile, getRotation, getTransparency, getUrl, getWidth, getXYRatio, isDeflated, isInterpolation, isInverted, isMask, isSoftMask, makeMask, setBpc, setColorEncodingComponentsNumber, setColorTransform, setDecode, setDeflated, setDpi, setFilter, setHeight, setImageAttributes, setImageMask, setInterpolation, setInverted, setProfile, setRotation, setTransparency, setUrl, setWidth, setXYRatio
-
Constructor Details
-
TiffImageData
-
TiffImageData
protected TiffImageData(byte[] bytes, boolean recoverFromImageError, int page, boolean direct)
-
-
Method Details
-
getNumberOfPages
Gets the number of pages the TIFF document has.- Parameters:
-
raf
- aRandomAccessFileOrArray
containing a TIFF image. - Returns:
- the number of pages.
-
getNumberOfPages
public static int getNumberOfPages(byte[] bytes) Gets the number of pages the TIFF document has.- Parameters:
-
bytes
- a byte array containing a TIFF image. - Returns:
- the number of pages.
-
isRecoverFromImageError
public boolean isRecoverFromImageError() -
getPage
public int getPage() -
isDirect
public boolean isDirect() -
setOriginalType
-