Interface DocConverter

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ImageConverter, PDFConverter, TextConverter

public interface DocConverter extends Closeable
其他格式转换为OFD文档
Since:
2023-3-14 22:59:16
Author:
权观宇
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    convert(Path filepath, int... indexes)
    转换为OFD页面

    Methods inherited from interface Closeable

    close
  • Method Details

    • convert

      void convert(Path filepath, int... indexes) throws GeneralConvertException
      转换为OFD页面

      1. 页码参数仅在转换源文件类型为类文档文件时有效,页码为不不传或为空时表示导出全部,如 obj.convert(p)obj.convert(p, null)

      2. 页码参数支持指定需要导出页码序列,序列应支持乱序,以及重复,如 obj.convert(p, 1,2,3)obj.convert(p, 5,1,2,2)

      3. 该方法可以重复调用,通过重复调用可以实现导出不同的页,甚至可以是重复的页。

          obj.convert(p, 1);
          obj.convert(p, 2);
          obj.convert(p, 2);
          obj.convert(p, 4,5);
      
      Parameters:
      filepath - 待转换文件路径
      indexes - 【可选】【可变】待转换页码(从0起),该参数仅在转换源文件类型为类文档文件时有效,当该参数不传或为空时表示转换全部内容到OFD。
      Throws:
      GeneralConvertException - 转换异常