org.apache.fop.render.pdf

Class FopPDFImage

Implemented Interfaces:
PDFImage

public class FopPDFImage
extends java.lang.Object
implements PDFImage

PDFImage implementation for the PDF renderer.

Constructor Summary

FopPDFImage(FopImage image, String key)
Creates a new PDFImage from a FopImage

Method Summary

int
getBitsPerPixel()
PDFDeviceColorSpace
getColorSpace()
String
getFilterHint()
int
getHeight()
PDFICCStream
getICCStream()
String
getKey()
String
getMask()
PDFFilter
getPDFFilter()
String
getSoftMask()
PDFColor
getTransparentColor()
int
getWidth()
boolean
isInverted()
boolean
isPS()
boolean
isTransparent()
void
outputContents(OutputStream out)
protected void
outputPostScriptContents(OutputStream out)
Serializes an EPS image to an OutputStream.
void
setup(PDFDocument doc)
static PDFDeviceColorSpace
toPDFColorSpace(ColorSpace cs)
Converts a ColorSpace object to a PDFColorSpace object.

Constructor Details

FopPDFImage

public FopPDFImage(FopImage image,
                   String key)
Creates a new PDFImage from a FopImage
Parameters:
image - Image
key - XObject key

Method Details

getBitsPerPixel

public int getBitsPerPixel()
Specified by:
getBitsPerPixel in interface PDFImage

getColorSpace

public PDFDeviceColorSpace getColorSpace()
Specified by:
getColorSpace in interface PDFImage

getFilterHint

public String getFilterHint()
Specified by:
getFilterHint in interface PDFImage

getHeight

public int getHeight()
Specified by:
getHeight in interface PDFImage

getICCStream

public PDFICCStream getICCStream()
Specified by:
getICCStream in interface PDFImage

getKey

public String getKey()
Specified by:
getKey in interface PDFImage

getMask

public String getMask()
Specified by:
getMask in interface PDFImage

getPDFFilter

public PDFFilter getPDFFilter()
Specified by:
getPDFFilter in interface PDFImage

getSoftMask

public String getSoftMask()
Specified by:
getSoftMask in interface PDFImage

getTransparentColor

public PDFColor getTransparentColor()
Specified by:
getTransparentColor in interface PDFImage

getWidth

public int getWidth()
Specified by:
getWidth in interface PDFImage

isInverted

public boolean isInverted()
Specified by:
isInverted in interface PDFImage
Returns:
true for CMYK images generated by Adobe Photoshop

isPS

public boolean isPS()
Specified by:
isPS in interface PDFImage

isTransparent

public boolean isTransparent()
Specified by:
isTransparent in interface PDFImage

outputContents

public void outputContents(OutputStream out)
            throws IOException
Specified by:
outputContents in interface PDFImage

outputPostScriptContents

protected void outputPostScriptContents(OutputStream out)
            throws IOException
Serializes an EPS image to an OutputStream.
Parameters:
out - OutputStream to write to

setup

public void setup(PDFDocument doc)
Specified by:
setup in interface PDFImage

toPDFColorSpace

public static PDFDeviceColorSpace toPDFColorSpace(ColorSpace cs)
Converts a ColorSpace object to a PDFColorSpace object.
Parameters:
cs - ColorSpace instance
Returns:
PDFColorSpace new converted object

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.