org.apache.fop.svg

Class PDFImageElementBridge


public class PDFImageElementBridge
extends SVGImageElementBridge

Bridge class for the <image> element when jpeg images.
Author:
Keiron Liddle

Nested Class Summary

class
PDFImageElementBridge.PDFJpegNode
A PDF jpeg node.

Constructor Summary

PDFImageElementBridge()
Constructs a new bridge for the <image> element.

Method Summary

protected GraphicsNode
createImageGraphicsNode(BridgeContext ctx, Element imageElement, ParsedURL purl)
Create the raster image node.
protected GraphicsNode
superCreateGraphicsNode(BridgeContext ctx, Element imageElement, ParsedURL purl)

Constructor Details

PDFImageElementBridge

public PDFImageElementBridge()
Constructs a new bridge for the <image> element.

Method Details

createImageGraphicsNode

protected GraphicsNode createImageGraphicsNode(BridgeContext ctx,
                                               Element imageElement,
                                               ParsedURL purl)
Create the raster image node. THis checks if it is a jpeg file and creates a jpeg node so the jpeg can be inserted directly into the pdf document.
Parameters:
ctx - the bridge context
imageElement - the svg element for the image
purl - the parsed url for the image resource
Returns:
a new graphics node

superCreateGraphicsNode

protected GraphicsNode superCreateGraphicsNode(BridgeContext ctx,
                                               Element imageElement,
                                               ParsedURL purl)
See Also:
org.apache.batik.bridge.SVGImageElementBridge

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