public class HTMLExporter extends Object implements OFDExporter
| 构造器和说明 |
|---|
HTMLExporter(InputStream ofdInput,
OutputStream htmlOutput)
构造图片转换器
|
HTMLExporter(Path ofdFilePath,
Path htmlFilePath)
构造图片转换器
|
public HTMLExporter(Path ofdFilePath, Path htmlFilePath) throws IOException
ofdFilePath - 待转换OFD文件htmlFilePath - 生成HTML存放目录IOException - 文件解析异常public HTMLExporter(InputStream ofdInput, OutputStream htmlOutput) throws IOException
ofdInput - 待转换OFD文件流,该流由调用者负责关闭htmlOutput - 生成HTML输出流IOException - 文件解析异常public void export(int... indexes)
throws GeneralConvertException
export 在接口中 OFDExporterindexes - 页码序列,如果为空表示全部页码(注意:页码从0起)GeneralConvertException - 转换异常public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2024. All rights reserved.