org.apache.fop.render.ps

Class PSTranscoder


public class PSTranscoder
extends 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.

Version:
$Id: PSTranscoder.java 426576 2006-07-28 15:44:37Z jeremias $
Author:
Keiron Liddle

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.fop.svg.AbstractFOPTranscoder

AbstractFOPTranscoder.FOPErrorHandler, AbstractFOPTranscoder.FOPTranscoderUserAgent

Field Summary

Fields inherited from class org.apache.fop.render.ps.AbstractPSTranscoder

graphics

Fields inherited from class org.apache.fop.svg.AbstractFOPTranscoder

KEY_STROKE_TEXT, VALUE_FORMAT_OFF, VALUE_FORMAT_ON, userAgent

Constructor Summary

PSTranscoder()
Constructs a new PSTranscoder.

Method Summary

protected AbstractPSDocumentGraphics2D
createDocumentGraphics2D()

Methods inherited from class org.apache.fop.render.ps.AbstractPSTranscoder

createBridgeContext, createDocumentGraphics2D, isTextStroked, transcode

Methods inherited from class org.apache.fop.svg.AbstractFOPTranscoder

createDocumentFactory, createUserAgent, getLogger, setEntityResolver, setLogger

Constructor Details

PSTranscoder

public PSTranscoder()
Constructs a new PSTranscoder.

Method Details

createDocumentGraphics2D

protected AbstractPSDocumentGraphics2D createDocumentGraphics2D()
Overrides:
createDocumentGraphics2D in interface AbstractPSTranscoder

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