Class HTMLExporter
java.lang.Object
org.ofdrw.converter.export.HTMLExporter
- All Implemented Interfaces:
Closeable, AutoCloseable, OFDExporter
基于SVG转换的 OFD HTML转换器
- Since:
- 2023-3-8 21:57:03
- Author:
- 权观宇
-
Constructor Summary
ConstructorsConstructorDescriptionHTMLExporter(InputStream ofdInput, OutputStream htmlOutput) 构造图片转换器HTMLExporter(Path ofdFilePath, Path htmlFilePath) 构造图片转换器 -
Method Summary
-
Constructor Details
-
HTMLExporter
构造图片转换器- Parameters:
ofdFilePath- 待转换OFD文件htmlFilePath- 生成HTML存放目录- Throws:
IOException- 文件解析异常
-
HTMLExporter
构造图片转换器- Parameters:
ofdInput- 待转换OFD文件流,该流由调用者负责关闭htmlOutput- 生成HTML输出流- Throws:
IOException- 文件解析异常
-
-
Method Details
-
export
导出指定OFD页为图片- Specified by:
exportin interfaceOFDExporter- Parameters:
indexes- 页码序列,如果为空表示全部页码(注意:页码从0起)- Throws:
GeneralConvertException- 转换异常
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-