public final class CCITTFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static PDImageXObject |
createFromFile(File file)
Creates a new CCITT Fax compressed Image XObject from the first page of a TIFF file.
|
static PDImageXObject |
createFromFile(File file,
int number)
Creates a new CCITT Fax compressed Image XObject from the first page of a TIFF file.
|
static PDImageXObject |
createFromImage(BufferedImage image)
Creates a new CCITT group 4 (T6) compressed image XObject from a b/w BufferedImage.
|
static PDImageXObject |
createFromSeekableSource(org.sejda.io.SeekableSource source) |
static PDImageXObject |
createFromSeekableSource(org.sejda.io.SeekableSource source,
int number) |
public static PDImageXObject createFromImage(BufferedImage image) throws IOException
LosslessFactory#createFromImage(PDDocument, BufferedImage) .image - the image.IOException - if there is an error creating the image.IllegalArgumentException - if the BufferedImage is not a b/w image.public static PDImageXObject createFromFile(File file) throws IOException
file - the TIFF file which contains a suitable CCITT compressed imageIOException - if there is an error reading the TIFF data.public static PDImageXObject createFromFile(File file, int number) throws IOException
file - the TIFF file which contains a suitable CCITT compressed imagenumber - TIFF image number, starting from 0IOException - if there is an error reading the TIFF data.public static PDImageXObject createFromSeekableSource(org.sejda.io.SeekableSource source) throws IOException
IOExceptionpublic static PDImageXObject createFromSeekableSource(org.sejda.io.SeekableSource source, int number) throws IOException
IOExceptionCopyright © 2020 sejda. All rights reserved.