|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.pdf.PDFRenderer
Renderer that renders areas to PDF
Field Summary | |
protected float |
currentBlue
the current colour's blue component |
protected PDFPathPaint |
currentFill
the current color/gradient to fill shapes with |
protected java.lang.String |
currentFontName
the current (internal) font name |
protected int |
currentFontSize
the current font size in millipoints |
protected float |
currentGreen
the current colour's green component |
protected float |
currentRed
the current colour's red component |
protected PDFPathPaint |
currentStroke
the current color/gradient for borders, letters, etc. |
protected int |
currentXPosition
the current horizontal position in millipoints from left |
protected int |
currentYPosition
the current vertical position in millipoints from bottom |
protected IDReferences |
idReferences
the IDReferences for this document |
protected PDFDocument |
pdfDoc
the PDF Document being created |
protected PDFResources |
pdfResources
the /Resources object of the PDF document being created |
Constructor Summary | |
PDFRenderer()
create the PDF renderer |
Method Summary | |
protected void |
addLine(int x1,
int y1,
int x2,
int y2,
int th,
PDFPathPaint stroke)
add a line to the current stream |
protected void |
addLine(int x1,
int y1,
int x2,
int y2,
int th,
java.lang.String rs,
PDFPathPaint stroke)
add a line to the current stream |
protected void |
addRect(int x,
int y,
int w,
int h,
PDFPathPaint stroke)
add a rectangle to the current stream |
protected void |
addRect(int x,
int y,
int w,
int h,
PDFPathPaint stroke,
PDFPathPaint fill)
add a filled rectangle to the current stream |
void |
render(AreaTree areaTree,
java.io.OutputStream stream)
render the areas into PDF |
void |
renderAreaContainer(AreaContainer area)
render area container to PDF |
void |
renderBlockArea(BlockArea area)
render block area to PDF |
void |
renderBodyAreaContainer(BodyAreaContainer area)
render the given area container |
void |
renderDisplaySpace(DisplaySpace space)
render display space to PDF |
void |
renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area |
void |
renderImageArea(ImageArea area)
render image area to PDF |
void |
renderInlineSpace(InlineSpace space)
render inline space to PDF |
void |
renderLeaderArea(LeaderArea area)
render leader area into PDF |
void |
renderLineArea(LineArea area)
render line area to PDF |
void |
renderPage(Page page)
render page into PDF |
protected void |
renderRootExtensions(AreaTree areaTree)
|
void |
renderSpanArea(SpanArea area)
render the given span area |
void |
renderSVGArea(SVGArea area)
render SVG area to PDF |
void |
renderWordArea(WordArea area)
render inline area to PDF |
void |
setProducer(java.lang.String producer)
set the PDF document's producer |
void |
setupFontInfo(FontInfo fontInfo)
set up the font info |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected PDFDocument pdfDoc
protected PDFResources pdfResources
protected IDReferences idReferences
protected java.lang.String currentFontName
protected int currentFontSize
protected PDFPathPaint currentStroke
protected PDFPathPaint currentFill
protected float currentRed
protected float currentGreen
protected float currentBlue
protected int currentYPosition
protected int currentXPosition
Constructor Detail |
public PDFRenderer()
Method Detail |
public void setProducer(java.lang.String producer)
producer
- string indicating application producing PDFpublic void render(AreaTree areaTree, java.io.OutputStream stream) throws java.io.IOException, FOPException
areaTree
- the laid-out area treestream
- the OutputStream to write the PDF toprotected void addLine(int x1, int y1, int x2, int y2, int th, PDFPathPaint stroke)
x1
- the start x location in millipointsy1
- the start y location in millipointsx2
- the end x location in millipointsy2
- the end y location in millipointsth
- the thickness in millipointsr
- the red componentg
- the green componentb
- the blue componentprotected void addLine(int x1, int y1, int x2, int y2, int th, java.lang.String rs, PDFPathPaint stroke)
x1
- the start x location in millipointsy1
- the start y location in millipointsx2
- the end x location in millipointsy2
- the end y location in millipointsth
- the thickness in millipointsrs
- the rule style as String containing dashArray + dashPhaser
- the red componentg
- the green componentb
- the blue componentprotected void addRect(int x, int y, int w, int h, PDFPathPaint stroke)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsstroke
- the stroke color/gradientprotected void addRect(int x, int y, int w, int h, PDFPathPaint stroke, PDFPathPaint fill)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsfill
- the fill color/gradientstroke
- the stroke color/gradientpublic void renderAreaContainer(AreaContainer area)
area
- the area container to renderpublic void renderBodyAreaContainer(BodyAreaContainer area)
public void renderSpanArea(SpanArea area)
public void renderBlockArea(BlockArea area)
area
- the block area to renderpublic void renderDisplaySpace(DisplaySpace space)
space
- the display space to renderpublic void renderImageArea(ImageArea area)
area
- the image area to renderpublic void renderForeignObjectArea(ForeignObjectArea area)
public void renderSVGArea(SVGArea area)
area
- the SVG area to renderpublic void renderWordArea(WordArea area)
area
- inline area to renderpublic void renderInlineSpace(InlineSpace space)
space
- space to renderpublic void renderLineArea(LineArea area)
area
- area to renderpublic void renderPage(Page page)
page
- page to renderpublic void renderLeaderArea(LeaderArea area)
area
- area to renderpublic void setupFontInfo(FontInfo fontInfo)
fontInfo
- font info to set upprotected void renderRootExtensions(AreaTree areaTree)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |