public abstract class AbstractWordConvertor extends AbstractConvertor
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
CONVERTER
document, log
Constructor and Description |
---|
AbstractWordConvertor(Document document)
有参构造
|
Modifier and Type | Method and Description |
---|---|
Document |
toPdf(WordType type,
File source)
转pdf
|
abstract Document |
toPdf(WordType type,
InputStream source)
转pdf
|
Document |
toPdf(WordType type,
String source)
转pdf
|
boolean |
toWord(WordType type,
File output)
转word
|
abstract boolean |
toWord(WordType type,
OutputStream output)
转word
|
boolean |
toWord(WordType type,
String output)
转word
|
toFile, toPdf, toPdf
getDocument
public AbstractWordConvertor(Document document)
document
- 文档public abstract Document toPdf(WordType type, InputStream source)
type
- 类型source
- 源输入流public abstract boolean toWord(WordType type, OutputStream output)
type
- 类型output
- 输出流public Document toPdf(WordType type, String source)
type
- 类型source
- 源路径public Document toPdf(WordType type, File source)
type
- 类型source
- 源文件public boolean toWord(WordType type, String output)
type
- 类型output
- 输出路径Copyright © 2025. All rights reserved.