예제 #1
0
 public DocumenConverter()
 {
     _container.Register <WordToHtmlConverter>(ConvertFileType.WordToHtml);
     _container.Register <WordToFormatHtmlConverter>(ConvertFileType.WordPDFtoHtml);
     _container.Register <WordToPdfConverter>(ConvertFileType.WordToPdf);
     _container.Register <ExcelToHtmlConverter>(ConvertFileType.ExcelToHtml);
     _container.Register <ExcelToFormatHtmlConverter>(ConvertFileType.ExcelPDFToHtml);
     _container.Register <ExcelToPdfConverter>(ConvertFileType.ExcelToPdf);
     _container.Register <PPTToHtmlConverter>(ConvertFileType.PPTToHtml);
     _container.Register <PPTToSwfConverter>(ConvertFileType.PPTPDFToHtml);
     _container.Register <PPTToPdfConverter>(ConvertFileType.PPTToPdf);
     _container.Register <PdfToHtmlConverter>(ConvertFileType.PdfToHtml);
     _container.Register <TextToHtmlConverter>(ConvertFileType.TextToHtml);
     _container.Register <TextToPdfConverter>(ConvertFileType.TextToPdf);
     _container.Register <TextToSwfConverter>(ConvertFileType.TextPDFToHtml);
     _container.Register <DwgConverter>(ConvertFileType.CadToBmp);
     _container.Register <DwgConverter>(ConvertFileType.CadToSvg);
     _container.Register <DwgConverter>(ConvertFileType.CadToJpg);
     _container.Register <DwgConverter>(ConvertFileType.CadToPng);
     _container.Register <TextToHtmlConverter>(ConvertFileType.None);
 }
 public static void Register <U>(this ConverterContainer container, ConvertFileType convertFileType) where U : IConverter
 {
     container.Register(convertFileType, typeof(U));
 }