gpt4 book ai didi

fr.opensagres.xdocreport.converter.XDocConverterException.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 14:36:40 27 4
gpt4 key购买 nike

本文整理了Java中fr.opensagres.xdocreport.converter.XDocConverterException.<init>()方法的一些代码示例,展示了XDocConverterException.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XDocConverterException.<init>()方法的具体详情如下:
包路径:fr.opensagres.xdocreport.converter.XDocConverterException
类名称:XDocConverterException
方法名:<init>

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 );

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com