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 image of a TIFF file.
|
static PDImageXObject |
createFromFile(PDDocument document,
File file,
int number)
Creates a new CCITT Fax compressed image XObject from a specific image 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
LosslessFactory.createFromImage(org.apache.pdfbox.pdmodel.PDDocument, java.awt.image.BufferedImage)
instead.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
LosslessFactory.createFromImage(org.apache.pdfbox.pdmodel.PDDocument, java.awt.image.BufferedImage)
instead.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 © 2002–2016 The Apache Software Foundation. All rights reserved.