Class CCITTFactory
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.graphics.image.CCITTFactory
-
public final class CCITTFactory extends Object
Factory for creating a PDImageXObject containing a CCITT Fax compressed TIFF image.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PDImageXObjectcreateFromFile(PDDocument document, File file)Creates a new CCITT Fax compressed Image XObject from the first page of a TIFF file.static PDImageXObjectcreateFromFile(PDDocument document, File file, int number)Creates a new CCITT Fax compressed Image XObject from the first page of a TIFF file.static PDImageXObjectcreateFromRandomAccess(PDDocument document, RandomAccess reader)Deprecated.UsecreateFromFile(PDDocument, File)instead.static PDImageXObjectcreateFromRandomAccess(PDDocument document, RandomAccess reader, int number)Deprecated.UsecreateFromFile(PDDocument, File, int)instead.
-
-
-
Method Detail
-
createFromRandomAccess
@Deprecated public static PDImageXObject createFromRandomAccess(PDDocument document, RandomAccess reader) throws IOException
Deprecated.UsecreateFromFile(PDDocument, File)instead.Creates a new CCITT Fax compressed Image XObject from the first page of a TIFF file.- Parameters:
document- the document to create the image as part of.reader- the random access TIFF file which contains a suitable CCITT compressed image- Returns:
- a new Image XObject
- Throws:
IOException- if there is an error reading the TIFF data.
-
createFromRandomAccess
@Deprecated public static PDImageXObject createFromRandomAccess(PDDocument document, RandomAccess reader, int number) throws IOException
Deprecated.UsecreateFromFile(PDDocument, File, int)instead.Creates a new CCITT Fax compressed Image XObject from a TIFF file.- Parameters:
document- the document to create the image as part of.reader- the random access TIFF file which contains a suitable CCITT compressed imagenumber- TIFF image number, starting from 0- Returns:
- a new Image XObject, or null if no such page
- Throws:
IOException- if there is an error reading the TIFF data.
-
createFromFile
public static PDImageXObject createFromFile(PDDocument document, File file) throws IOException
Creates a new CCITT Fax compressed Image XObject from the first page of a TIFF file.- Parameters:
document- the document to create the image as part of.file- the TIFF file which contains a suitable CCITT compressed image- Returns:
- a new Image XObject
- Throws:
IOException- if there is an error reading the TIFF data.
-
createFromFile
public static PDImageXObject createFromFile(PDDocument document, File file, int number) throws IOException
Creates a new CCITT Fax compressed Image XObject from the first page of a TIFF file.- Parameters:
document- the document to create the image as part of.file- the TIFF file which contains a suitable CCITT compressed imagenumber- TIFF image number, starting from 0 compressed image- Returns:
- a new Image XObject
- Throws:
IOException- if there is an error reading the TIFF data.
-
-