org.apache.fop.render.ps
Class AbstractPSTranscoder
public abstract class AbstractPSTranscoder
This class enables to transcode an input to a PostScript document.
Two transcoding hints (
KEY_WIDTH and
KEY_HEIGHT) can be used to respectively specify the image
width and the image height. If only one of these keys is specified,
the transcoder preserves the aspect ratio of the original image.
The
KEY_BACKGROUND_COLOR defines the background color
to use for opaque image formats, or the background color that may
be used for image formats that support alpha channel.
The
KEY_AOI represents the area of interest to paint
in device space.
Three additional transcoding hints that act on the SVG
processor can be specified:
KEY_LANGUAGE to set the default language to use (may be
used by a <switch> SVG element for example),
KEY_USER_STYLESHEET_URI to fix the URI of a user
stylesheet, and
KEY_PIXEL_TO_MM to specify the pixel to
millimeter conversion factor.
$Id: AbstractPSTranscoder.java 426576 2006-07-28 15:44:37Z jeremias $
protected AbstractPSDocumentGraphics2D | graphics
|
graphics
protected AbstractPSDocumentGraphics2D graphics
AbstractPSTranscoder
public AbstractPSTranscoder()
Constructs a new AbstractPSTranscoder.
createBridgeContext
protected BridgeContext createBridgeContext()
org.apache.batik.transcoder.SVGAbstractTranscoder.createBridgeContext()
createDocumentGraphics2D
protected abstract AbstractPSDocumentGraphics2D createDocumentGraphics2D()
isTextStroked
protected boolean isTextStroked()
- true if text should be stroked rather than painted using text operators
transcode
protected void transcode(Document document,
String uri,
TranscoderOutput output)
throws TranscoderException
Transcodes the specified Document as an image in the specified output.
document
- the document to transcodeuri
- the uri of the document or null if anyoutput
- the ouput where to transcode
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.