|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.PrintRenderer | +--org.apache.fop.render.pdf.PDFRenderer
Renderer that renders areas to PDF
Field Summary | |
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,
int rs,
PDFPathPaint stroke)
add a line to the current stream |
protected void |
addLine(int x1,
int y1,
int x2,
int y2,
int th,
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 |
renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area |
void |
renderImageArea(ImageArea area)
render image area to PDF |
void |
renderPage(Page page)
render page into PDF |
protected void |
renderRootExtensions(AreaTree areaTree)
|
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 |
Methods inherited from class org.apache.fop.render.PrintRenderer |
addWordLines,
renderAreaContainer,
renderBlockArea,
renderBodyAreaContainer,
renderDisplaySpace,
renderInlineSpace,
renderLeaderArea,
renderLineArea,
renderSpanArea,
setupFontInfo |
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
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, int 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 styler
- 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 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 renderPage(Page page)
page
- page to renderprotected void renderRootExtensions(AreaTree areaTree)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |