org.apache.fop.svg

Class PDFBridgeContext


public class PDFBridgeContext
extends BridgeContext

BridgeContext which registers the custom bridges for PDF output.

Constructor Summary

PDFBridgeContext(UserAgent userAgent, DocumentLoader loader, FontInfo fontInfo, ImageManager imageManager, ImageSessionContext imageSessionContext, AffineTransform linkTransform)
Constructs a new bridge context.
PDFBridgeContext(UserAgent userAgent, FontInfo fontInfo, ImageManager imageManager, ImageSessionContext imageSessionContext)
Constructs a new bridge context.
PDFBridgeContext(UserAgent userAgent, FontInfo fontInfo, ImageManager imageManager, ImageSessionContext imageSessionContext, AffineTransform linkTransform)
Constructs a new bridge context.

Method Summary

BridgeContext
createBridgeContext()
ImageManager
getImageManager()
Returns the ImageManager to be used by the ImageElementBridge.
ImageSessionContext
getImageSessionContext()
Returns the ImageSessionContext to be used by the ImageElementBridge.
void
registerSVGBridges()

Constructor Details

PDFBridgeContext

public PDFBridgeContext(UserAgent userAgent,
                        DocumentLoader loader,
                        FontInfo fontInfo,
                        ImageManager imageManager,
                        ImageSessionContext imageSessionContext,
                        AffineTransform linkTransform)
Constructs a new bridge context.
Parameters:
userAgent - the user agent
loader - the Document Loader to use for referenced documents.
fontInfo - the font list for the text painter, may be null in which case text is painted as shapes
linkTransform - AffineTransform to properly place links, may be null

PDFBridgeContext

public PDFBridgeContext(UserAgent userAgent,
                        FontInfo fontInfo,
                        ImageManager imageManager,
                        ImageSessionContext imageSessionContext)
Constructs a new bridge context.
Parameters:
userAgent - the user agent
fontInfo - the font list for the text painter, may be null in which case text is painted as shapes

PDFBridgeContext

public PDFBridgeContext(UserAgent userAgent,
                        FontInfo fontInfo,
                        ImageManager imageManager,
                        ImageSessionContext imageSessionContext,
                        AffineTransform linkTransform)
Constructs a new bridge context.
Parameters:
userAgent - the user agent
fontInfo - the font list for the text painter, may be null in which case text is painted as shapes
linkTransform - AffineTransform to properly place links, may be null

Method Details

createBridgeContext

public BridgeContext createBridgeContext()

getImageManager

public ImageManager getImageManager()
Returns the ImageManager to be used by the ImageElementBridge.
Returns:
the image manager

getImageSessionContext

public ImageSessionContext getImageSessionContext()
Returns the ImageSessionContext to be used by the ImageElementBridge.
Returns:
the image session context

registerSVGBridges

public void registerSVGBridges()

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