com.xpn.xwiki.pdf.impl
Class PdfExportImpl

java.lang.Object
  extended bycom.xpn.xwiki.pdf.impl.PdfExportImpl
All Implemented Interfaces:
PdfExport

public class PdfExportImpl
extends java.lang.Object
implements PdfExport


Field Summary
private  java.lang.String fopxsl
           
private static int PDF
           
private static int RTF
           
private  org.w3c.tidy.Tidy tidy
           
private  java.lang.String xhtmlxsl
           
 
Constructor Summary
PdfExportImpl()
           
 
Method Summary
 byte[] applyXsl(byte[] xml, java.lang.String xslfile)
           
 byte[] convertToStrictXHtml(byte[] input)
           
 byte[] convertXHtmlToXMLFO(byte[] xhtml)
           
 void export(XWikiDocument doc, java.io.OutputStream out, int type, XWikiContext context)
           
 void exportHtml(java.lang.String html, java.io.OutputStream out, int type)
           
 void exportToPDF(XWikiDocument doc, java.io.OutputStream out, XWikiContext context)
           
 void exportXHtml(byte[] xhtml, java.io.OutputStream out, int type)
           
 void exportXMLFO(byte[] xmlfo, java.io.OutputStream out, int type)
           
 java.lang.String getFopxsl()
           
 java.lang.String getXhtmlxsl()
           
static void main(java.lang.String[] argv)
           
static void saveFile(java.lang.String filename, byte[] content)
           
 void setFopxsl(java.lang.String fopxsl)
           
 void setXhtmlxsl(java.lang.String xhtmlxsl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tidy

private org.w3c.tidy.Tidy tidy

xhtmlxsl

private java.lang.String xhtmlxsl

fopxsl

private java.lang.String fopxsl

PDF

private static final int PDF
See Also:
Constant Field Values

RTF

private static final int RTF
See Also:
Constant Field Values
Constructor Detail

PdfExportImpl

public PdfExportImpl()
Method Detail

getXhtmlxsl

public java.lang.String getXhtmlxsl()

setXhtmlxsl

public void setXhtmlxsl(java.lang.String xhtmlxsl)

exportXHtml

public void exportXHtml(byte[] xhtml,
                        java.io.OutputStream out,
                        int type)
                 throws XWikiException
Specified by:
exportXHtml in interface PdfExport
Throws:
XWikiException

exportXMLFO

public void exportXMLFO(byte[] xmlfo,
                        java.io.OutputStream out,
                        int type)
                 throws XWikiException
Throws:
XWikiException

exportHtml

public void exportHtml(java.lang.String html,
                       java.io.OutputStream out,
                       int type)
                throws XWikiException
Specified by:
exportHtml in interface PdfExport
Throws:
XWikiException

exportToPDF

public void exportToPDF(XWikiDocument doc,
                        java.io.OutputStream out,
                        XWikiContext context)
                 throws XWikiException
Specified by:
exportToPDF in interface PdfExport
Throws:
XWikiException

export

public void export(XWikiDocument doc,
                   java.io.OutputStream out,
                   int type,
                   XWikiContext context)
            throws XWikiException
Specified by:
export in interface PdfExport
Throws:
XWikiException

convertToStrictXHtml

public byte[] convertToStrictXHtml(byte[] input)
Specified by:
convertToStrictXHtml in interface PdfExport

convertXHtmlToXMLFO

public byte[] convertXHtmlToXMLFO(byte[] xhtml)
                           throws XWikiException
Specified by:
convertXHtmlToXMLFO in interface PdfExport
Throws:
XWikiException

applyXsl

public byte[] applyXsl(byte[] xml,
                       java.lang.String xslfile)
                throws XWikiException
Throws:
XWikiException

getFopxsl

public java.lang.String getFopxsl()

setFopxsl

public void setFopxsl(java.lang.String fopxsl)

main

public static void main(java.lang.String[] argv)
                 throws java.io.IOException,
                        XWikiException
Throws:
java.io.IOException
XWikiException

saveFile

public static void saveFile(java.lang.String filename,
                            byte[] content)
                     throws java.io.IOException
Throws:
java.io.IOException


Copyright 2003 Ludovic Dubost