multivalent.std.adaptor.pdf
public class Images extends Object
Version: $Revision: 1.82 $ $Date: 2003/11/29 19:54:44 $
See Also: javax.imageio.* Fax
Method Summary | |
---|---|
static BufferedImage | createImage(Dict imgdict, InputStream in, Color fillcolor, PDFReader pdfr)
Constructs new BufferedImage from dictionary attributes and data in stream. |
static BufferedImage | createScaledImage(Dict imgdict, InputStream in, AffineTransform ctm, Color fillcolor, PDFReader pdfr)
Scale and rotate according to affine transform, adjusting image origin from PDF lower-left to Java upper-left. |
static BufferedImage | createScaledInline(InputStreamComposite in, Dict csres, AffineTransform ctm, Color fillcolor, PDFReader pdfr) Process inline image into Node. |
static Dict | getDecodeParms(Dict imgdict, PDFReader pdfr)
Returns image's /DecodeParms, or null if none (or OBJECT_NULL).
|
static String | getFilter(Dict imgdict, COSSource coss)
Return image part of filter, which may be in a cascade, or null if none.
|
static String | getSuffix(String filter) Returns file type suffix corresponding to PDF filter, e.g., PDF DCTDecode returns jpg . |
Parameters: imgdict image XObject, or Dict with STREAM_DATA key set for inline images
See Also: Images
null
if none (or OBJECT_NULL).
If /DecodeParms is an array, the one corresponding to the image is always the last array element.null
if none.
Expands abbreviations ("DCT" => "DCTDecode", "CCF" => "CCITTFaxDecode").
For example, from [ASCII85Decode CCF]
, returns CCITTFaxDecode
.DCTDecode
returns jpg
.