- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中fr.opensagres.xdocreport.converter.XDocConverterException.<init>()
方法的一些代码示例,展示了XDocConverterException.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XDocConverterException.<init>()
方法的具体详情如下:
包路径:fr.opensagres.xdocreport.converter.XDocConverterException
类名称:XDocConverterException
方法名:<init>
暂无
代码示例来源:origin: fr.opensagres/fr.opensagres.xdocreport.converter.odt.odfdom
public void convert(InputStream in, OutputStream out, Options options)
throws XDocConverterException {
try {
OdfTextDocument odfDocument = OdfTextDocument.loadDocument(in);
org.odftoolkit.odfdom.converter.itext.ODF2PDFViaITextConverter
.getInstance().convert(odfDocument, out, null);
} catch (ODFConverterException e) {
throw new XDocConverterException(e);
} catch (IOException e) {
throw new XDocConverterException(e);
} catch (Exception e) {
throw new XDocConverterException(e);
}
}
代码示例来源:origin: fr.opensagres/fr.opensagres.xdocreport.converter.odt.odfdom
public void convert(InputStream in, OutputStream out, Options options)
throws XDocConverterException {
try {
OdfTextDocument odfDocument = OdfTextDocument.loadDocument(in);
org.odftoolkit.odfdom.converter.xhtml.ODF2XHTMLConverter
.getInstance().convert(odfDocument, out,
toODFOptions(options));
} catch (ODFConverterException e) {
throw new XDocConverterException(e);
} catch (IOException e) {
throw new XDocConverterException(e);
} catch (Exception e) {
throw new XDocConverterException(e);
}
}
代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.xdocreport.document
public void dump( IContext context, InputStream documentIn, DumperOptions options, OutputStream out )
throws IOException, XDocReportException
{
if ( documentIn == null )
{
throw new XDocConverterException( "Dump cannot be done. Dump fo the report input stream cannot be null." );
}
getDumper( options ).dump( this, documentIn, context, options, out );
}
代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.xdocreport.converter.odt.odfdom
public void convert( InputStream in, OutputStream out, Options options )
throws XDocConverterException
{
try
{
OdfTextDocument odfDocument = OdfTextDocument.loadDocument( in );
PdfConverter.getInstance().convert( odfDocument, out, toPdfOptions( options ) );
}
catch ( ODFConverterException e )
{
throw new XDocConverterException( e );
}
catch ( IOException e )
{
throw new XDocConverterException( e );
}
catch ( Exception e )
{
throw new XDocConverterException( e );
}
}
代码示例来源:origin: fr.opensagres/fr.opensagres.xdocreport.converter
public void convert(InputStream in, OutputStream out, Options options)
throws XDocConverterException {
try {
convert(XDocArchive.readZip(in), out, options);
} catch (IOException e) {
throw new XDocConverterException(e);
}
}
代码示例来源:origin: fr.opensagres/fr.opensagres.xdocreport.converter.docx.xwpf
public void convert(InputStream in, OutputStream out, Options options)
throws XDocConverterException {
try {
XWPFDocument document = new XWPFDocument(in);
org.apache.poi.xwpf.converter.itext.XWPF2PDFViaITextConverter
.getInstance().convert(document, out, null);
} catch (Exception e) {
LOGGER.severe(e.getMessage());
throw new XDocConverterException(e);
}
}
代码示例来源:origin: fr.opensagres/fr.opensagres.xdocreport.converter
LOGGER.severe(msg);
if(throwError){
throw new XDocConverterException(msg);
LOGGER.severe(msg);
if(throwError){
throw new XDocConverterException(msg);
LOGGER.severe(msg);
if(throwError){
throw new XDocConverterException(msg);
LOGGER.severe(msg);
if(throwError){
throw new XDocConverterException(msg);
代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.xdocreport.converter.odt.odfdom
public void convert( InputStream in, OutputStream out, Options options )
throws XDocConverterException
{
try
{
OdfTextDocument odfDocument = OdfTextDocument.loadDocument( in );
fr.opensagres.odfdom.converter.xhtml.XHTMLConverter.getInstance().convert( odfDocument, out,
toXHTMLOptions( options ) );
}
catch ( ODFConverterException e )
{
throw new XDocConverterException( e );
}
catch ( IOException e )
{
throw new XDocConverterException( e );
}
catch ( Exception e )
{
throw new XDocConverterException( e );
}
}
代码示例来源:origin: fr.opensagres/fr.opensagres.xdocreport.converter.docx.xwpf
public void convert(InputStream in, OutputStream out, Options options)
throws XDocConverterException {
try {
XWPFDocument document = new XWPFDocument(in);
org.apache.poi.xwpf.converter.xhtml.XWPF2XHTMLConverter
.getInstance().convert(document, out, toXWPFOptions(options));
} catch (Exception e) {
LOGGER.severe(e.getMessage());
throw new XDocConverterException(e);
}
}
代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.xdocreport.converter.docx.docx4j
public void convert( InputStream in, OutputStream out, Options options )
throws XDocConverterException
{
try
{
// 1) load docx with docx4j
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load( in );
// 2) convert it to HTML
AbstractHtmlExporter exporter = new HtmlExporterNG2();
javax.xml.transform.stream.StreamResult result = new javax.xml.transform.stream.StreamResult( out );
exporter.html( wordMLPackage, result, toHtmlSettings( options ) );
}
catch ( Exception e )
{
LOGGER.severe( e.getMessage() );
throw new XDocConverterException( e );
}
}
代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.xdocreport.converter.docx.docx4j
public void convert( InputStream in, OutputStream out, Options options )
throws XDocConverterException
{
try
{
// 1) load docx with docx4j
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load( in );
// 2) convert it to PDF
org.docx4j.convert.out.pdf.PdfConversion c
// = new org.docx4j.convert.out.pdf.viaHTML.Conversion(wordMLPackage);
= new org.docx4j.convert.out.pdf.viaXSLFO.Conversion( wordMLPackage );
//= new org.docx4j.convert.out.pdf.viaIText.Conversion(wordMLPackage);
// ( (org.docx4j.convert.out.pdf.viaXSLFO.Conversion) c ).setSaveFO( new java.io.File( inputfilepath + ".fo" ) );
c.output( out, toPdfSettings(options) );
}
catch ( Exception e )
{
LOGGER.severe( e.getMessage() );
throw new XDocConverterException( e );
}
}
代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.xdocreport.document
throw new XDocConverterException( e );
我正在测试 XDocReport 中的示例代码。我结合了,基于 docx 模板创建了 docx 和 pdf 报告。但是我不断收到这条消息 Apr 21, 2016 5:39:10 PM fr.open
本文整理了Java中fr.opensagres.xdocreport.converter.XDocConverterException.()方法的一些代码示例,展示了XDocConverterExce
我是一名优秀的程序员,十分优秀!