public class SVGExporter extends Object implements OFDExporter
| 构造器和说明 |
|---|
SVGExporter(InputStream ofdInput,
Path imgDirPath)
构造图片转换器
|
SVGExporter(InputStream ofdInput,
Path imgDirPath,
double ppm)
构造图片转换器
|
SVGExporter(Path ofdFilePath,
Path imgDirPath)
构造图片转换器
|
SVGExporter(Path ofdFilePath,
Path imgDirPath,
double ppm)
构造图片转换器
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
export(int... indexes)
导出指定OFD页为SVG
|
List<Path> |
getSvgFilePaths()
获取已经转换完成的页面的图片路径
|
void |
setPPM(double ppm)
设置转换SVG质量
请在调用
export(int...) |
public SVGExporter(Path ofdFilePath, Path imgDirPath) throws IOException
ofdFilePath - 待转换OFD文件imgDirPath - 生成SVG存放目录IOException - 文件解析异常public SVGExporter(InputStream ofdInput, Path imgDirPath) throws IOException
ofdInput - 待转换OFD文件流,该流由调用者负责关闭imgDirPath - 生成SVG存放目录IOException - 文件解析异常public SVGExporter(Path ofdFilePath, Path imgDirPath, double ppm) throws IOException
ofdFilePath - 待转换OFD文件imgDirPath - 生成SVG存放目录ppm - 转换SVG质量,每毫米像素数量(Pixels per millimeter)IOException - 文件解析异常public SVGExporter(InputStream ofdInput, Path imgDirPath, double ppm) throws IOException
ofdInput - 待转换OFD文件流,该文件流由调用者负责关闭imgDirPath - 生成SVG存放目录ppm - 转换SVG质量,每毫米像素数量(Pixels per millimeter)IOException - 文件解析异常public void export(int... indexes)
throws GeneralConvertException
export 在接口中 OFDExporterindexes - 页码序列,如果为空表示全部页码(注意:页码从0起)GeneralConvertException - 转换异常public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic void setPPM(double ppm)
请在调用 export(int...) 方法之前设置PPM!
ppm - 每毫米像素数量(Pixels per millimeter)Copyright © 2024. All rights reserved.