public final class CCITTFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static PDImageXObject |
createFromFile(PDDocument document,
File file)
Creates a new CCITT Fax compressed Image XObject from the first page of
a TIFF file.
|
static PDImageXObject |
createFromFile(PDDocument document,
File file,
int number)
Creates a new CCITT Fax compressed Image XObject from the first page of
a TIFF file.
|
static PDImageXObject |
createFromRandomAccess(PDDocument document,
RandomAccess reader)
Deprecated.
Use
createFromFile(PDDocument, File) instead. |
static PDImageXObject |
createFromRandomAccess(PDDocument document,
RandomAccess reader,
int number)
Deprecated.
Use
createFromFile(PDDocument, File, int) instead. |
@Deprecated public static PDImageXObject createFromRandomAccess(PDDocument document, RandomAccess reader) throws IOException
createFromFile(PDDocument, File) instead.document - the document to create the image as part of.reader - the random access TIFF file which contains a suitable CCITT
compressed imageIOException - if there is an error reading the TIFF data.@Deprecated public static PDImageXObject createFromRandomAccess(PDDocument document, RandomAccess reader, int number) throws IOException
createFromFile(PDDocument, File, int) instead.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 0IOException - if there is an error reading the TIFF data.public static PDImageXObject createFromFile(PDDocument document, File file) throws IOException
document - the document to create the image as part of.file - the TIFF file which contains a suitable CCITT compressed imageIOException - if there is an error reading the TIFF data.public static PDImageXObject createFromFile(PDDocument document, File file, int number) throws IOException
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 0IOException - if there is an error reading the TIFF data.Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.