org.apache.fop.render.pdf
Class PDFRenderer


public class PDFRenderer
implements Renderer

Renderer that renders areas to PDF


Field Summary
 (package private) PDFAnnotListcurrentAnnotList
          the current annotation list to add annotations to
 (package private) PDFPagecurrentPage
          the current page to add annotations to
 (package private) PDFStreamcurrentStream
          the current stream to add PDF commands to

Constructor Summary
PDFRenderer()
          create the PDF renderer

Method Summary
 voidrender(AreaTree areaTree, OutputStream stream)
          render the areas into PDF
 voidrenderAreaContainer(AreaContainer area)
          render area container to PDF
 voidrenderBlockArea(BlockArea area)
          render block area to PDF
 voidrenderBodyAreaContainer(BodyAreaContainer area)
           
 voidrenderDisplaySpace(DisplaySpace space)
          render display space to PDF
 voidrenderForeignObjectArea(ForeignObjectArea area)
          render a foreign object area
 voidrenderImageArea(ImageArea area)
          render image area to PDF
 voidrenderInlineArea(InlineArea area)
          render inline area to PDF
 voidrenderInlineSpace(InlineSpace space)
          render inline space to PDF
 voidrenderLeaderArea(LeaderArea area)
          render leader area into PDF
 voidrenderLineArea(LineArea area)
          render line area to PDF
 voidrenderPage(Page page)
          render page into PDF
 voidrenderSpanArea(SpanArea area)
           
 voidrenderSVGArea(SVGArea area)
          render SVG area to PDF
 voidsetProducer(String producer)
          set the PDF document's producer
 voidsetupFontInfo(FontInfo fontInfo)
          set up the font info

Field Detail

currentAnnotList

PDFAnnotList currentAnnotList
the current annotation list to add annotations to

currentPage

PDFPage currentPage
the current page to add annotations to

currentStream

PDFStream currentStream
the current stream to add PDF commands to
Constructor Detail

PDFRenderer

public PDFRenderer()
create the PDF renderer
Method Detail

render

public void render(AreaTree areaTree, OutputStream stream)
throws java.io.IOException,
org.apache.fop.apps.FOPException
render the areas into PDF
Parameters:
areaTree - the laid-out area tree
stream - the OutputStream to write the PDF to

renderAreaContainer

public void renderAreaContainer(AreaContainer area)
render area container to PDF
Parameters:
area - the area container to render

renderBlockArea

public void renderBlockArea(BlockArea area)
render block area to PDF
Parameters:
area - the block area to render

renderBodyAreaContainer

public void renderBodyAreaContainer(BodyAreaContainer area)

renderDisplaySpace

public void renderDisplaySpace(DisplaySpace space)
render display space to PDF
Parameters:
space - the display space to render

renderForeignObjectArea

public void renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area

renderImageArea

public void renderImageArea(ImageArea area)
render image area to PDF
Parameters:
area - the image area to render

renderInlineArea

public void renderInlineArea(InlineArea area)
render inline area to PDF
Parameters:
area - inline area to render

renderInlineSpace

public void renderInlineSpace(InlineSpace space)
render inline space to PDF
Parameters:
space - space to render

renderLeaderArea

public void renderLeaderArea(LeaderArea area)
render leader area into PDF
Parameters:
area - area to render

renderLineArea

public void renderLineArea(LineArea area)
render line area to PDF
Parameters:
area - area to render

renderPage

public void renderPage(Page page)
render page into PDF
Parameters:
page - page to render

renderSpanArea

public void renderSpanArea(SpanArea area)

renderSVGArea

public void renderSVGArea(SVGArea area)
render SVG area to PDF
Parameters:
area - the SVG area to render

setProducer

public void setProducer(String producer)
set the PDF document's producer
Parameters:
producer - string indicating application producing PDF

setupFontInfo

public void setupFontInfo(FontInfo fontInfo)
set up the font info
Parameters:
fontInfo - font info to set up

Association Links

to Class org.apache.fop.pdf.PDFDocument

the PDF Document being created

to Class org.apache.fop.pdf.PDFResources

the /Resources object of the PDF document being created

to Class org.apache.fop.datatypes.IDReferences

the IDReferences for this document

to Class org.apache.fop.pdf.PDFStream

the current stream to add PDF commands to

to Class org.apache.fop.pdf.PDFAnnotList

the current annotation list to add annotations to

to Class org.apache.fop.pdf.PDFPage

the current page to add annotations to

to Class java.lang.String

the current (internal) font name

to Class org.apache.fop.pdf.PDFPathPaint

the current color/gradient for borders, letters, etc.

to Class org.apache.fop.pdf.PDFPathPaint

the current color/gradient to fill shapes with

to Class org.apache.fop.pdf.PDFColor

the current colour for use in svg