|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PdfExport
PDF Exporter, converts a wiki Document
into PDF.
Nested Class Summary | |
---|---|
static class |
PdfExport.ExportType
Describes export types. |
Method Summary | |
---|---|
void |
export(XWikiDocument doc,
OutputStream out,
PdfExport.ExportType type,
XWikiContext context)
Export a wiki Document into PDF or RTF. |
void |
exportHtml(String html,
OutputStream out,
PdfExport.ExportType type,
XWikiContext context)
Convert an HTML document to PDF. |
void |
exportToPDF(XWikiDocument doc,
OutputStream out,
XWikiContext context)
Export a wiki Document into PDF. |
Method Detail |
---|
void exportToPDF(XWikiDocument doc, OutputStream out, XWikiContext context) throws XWikiException
export(XWikiDocument, OutputStream, ExportType, XWikiContext)
for more details about the
conversion process.
doc
- the document to exportout
- where to write the resulting documentcontext
- the current request context
XWikiException
- if the conversion fails for any reasonexport(XWikiDocument, OutputStream, ExportType, XWikiContext)
void export(XWikiDocument doc, OutputStream out, PdfExport.ExportType type, XWikiContext context) throws XWikiException
pdf.vm
template, the resulting HTML is cleaned up into valid XHTML, and custom CSS is applied to it. The
XHTML document is transformed into an XSL-FO document, which is finally processed using Apache FOP.
doc
- the document to exportout
- where to write the resulting documenttype
- the type of the output: PDF or RTFcontext
- the current request context
XWikiException
- if the conversion fails for any reasonvoid exportHtml(String html, OutputStream out, PdfExport.ExportType type, XWikiContext context) throws XWikiException
html
- the source document to transformout
- where to write the resulting documenttype
- the type of the output: PDF or RTFcontext
- the current request context
XWikiException
- if the conversion fails for any reason
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |