public class PDFExporter extends AbstractPDFExporter
限定符和类型 | 类和说明 |
---|---|
static class |
PDFExporter.MyFontMapper |
构造器和说明 |
---|
PDFExporter()
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
void |
export(java.io.OutputStream out,
PageSetProvider pageSet)
导出
|
void |
export(java.io.OutputStream out,
PageSetProvider pageSet,
ReportExportAttr reportExportAttr)
导出 Exports Iterator
|
void |
export(java.io.OutputStream out,
ResultWorkBook book)
导出 Exports WorkBook.
|
void |
export(java.io.OutputStream out,
ResultWorkBook workBook,
PageSetCreator pageSet,
ReportRepositoryDeal repo,
int[] sheets)
导出
|
protected PagePainterProvider |
getPagePainterProvider(ReportPageProvider reportPage,
java.awt.Graphics2D g2d,
java.util.HashMap<java.lang.String,java.lang.Class> pagePainterClass) |
protected com.fr.third.com.lowagie.text.pdf.PdfWriter |
getPdfWriter(java.io.ByteArrayOutputStream bo,
com.fr.third.com.lowagie.text.Document document) |
protected static void |
insertDirectory(PDFExporter.MyFontMapper fontMapper,
java.io.File dir) |
protected void |
scaleG2D(java.awt.Graphics2D g2d) |
export, setVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
export, setVersion
public void export(java.io.OutputStream out, ResultWorkBook workBook, PageSetCreator pageSet, ReportRepositoryDeal repo, int[] sheets) throws java.lang.Exception
AppExporter
export
在接口中 AppExporter
export
在类中 AbstractAppExporter
out
- 输出流workBook
- 结果报表pageSet
- 分页集合repo
- 浏览器相关sheets
- sheet索引集合java.lang.Exception
- 导出失败则抛出此异常public void export(java.io.OutputStream out, ResultWorkBook book) throws java.lang.Exception
pdf导出的例子:
WorkBook workbook = (WorkBook) TemplateWorkBookIO.readTemplateWorkBook(FRContext.getCommonOperator(), "1.cpt"); PageRWorkBook book = (PageRWorkBook) workbook.execute(new HashMap(), ActorFactory.getActor("page")); OutputStream out = new FileOutputStream(new File("c:/a.pdf")); new PDFExporter().export(out, book);
out
- 输出流book
- 结果对象java.lang.Exception
- 异常public void export(java.io.OutputStream out, PageSetProvider pageSet) throws java.lang.Exception
export
在接口中 AppExporter
export
在类中 AbstractAppExporter
out
- 输出流pageSet
- 报表分页处理之后的页集合java.lang.Exception
public void export(java.io.OutputStream out, PageSetProvider pageSet, ReportExportAttr reportExportAttr) throws java.lang.Exception
out
- 输出流pageSet
- Page集合reportExportAttr
- 报表导出属性java.lang.Exception
- 异常protected PagePainterProvider getPagePainterProvider(ReportPageProvider reportPage, java.awt.Graphics2D g2d, java.util.HashMap<java.lang.String,java.lang.Class> pagePainterClass)
protected void scaleG2D(java.awt.Graphics2D g2d)
protected com.fr.third.com.lowagie.text.pdf.PdfWriter getPdfWriter(java.io.ByteArrayOutputStream bo, com.fr.third.com.lowagie.text.Document document) throws com.fr.third.com.lowagie.text.DocumentException
com.fr.third.com.lowagie.text.DocumentException
protected static void insertDirectory(PDFExporter.MyFontMapper fontMapper, java.io.File dir)