public interface PdfExport
Document
into PDF.Modifier and Type | Interface and Description |
---|---|
static class |
PdfExport.ExportType
Describes export types.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 contextXWikiException
- 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 contextXWikiException
- 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 contextXWikiException
- if the conversion fails for any reasonCopyright © 2004–2021 XWiki. All rights reserved.