| java.lang.Object org.enhydra.dm.util.TransformUtility
TransformUtility | public class TransformUtility (Code) | | |
configure | public static void configure(Properties properties) throws BaseException(Code) | | Method finds fiels and folders on the file sistem and make transformers,
necessary for making pdf file from editor content.
Parameters: properties - throws: BaseException - |
getFopFactory | public static FopFactory getFopFactory()(Code) | | |
getTidy | public static Tidy getTidy()(Code) | | Method make Tidy parser using tidyConfig.properties
Tidy parser |
html2xhtml | public static String html2xhtml(String content) throws BaseException(Code) | | Method transforms TinyMCE submission from HTML to XHTML format using JTidy utility
Parameters: cont - XHTML format of editor content throws: BaseException - |
params2xml | public static String params2xml(HashMap foParams)(Code) | | Method embeds editor content and other "Document properties" fields in the same
String that represents input for final transformation.
Parameters: foParams - XML data format |
xhtml2fo | public static String xhtml2fo(String content) throws BaseException(Code) | | Method transforms XHTML content format to FO format using xhtml2fo (XSl) template
Parameters: cont - FO format of editor content throws: BaseException - |
xml2pdf | public static byte[] xml2pdf(byte[] cont, HashMap userAgentProps, String templatePath) throws BaseException(Code) | | Method generate PDF file specialized (XSLFast) XSL-FO template and FOP utility
Parameters: cont - Parameters: userAgentProps - Parameters: templatePath - PDF file content |
|
|