public abstract class AbstractRichTextConvertor 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 |
---|
AbstractRichTextConvertor(Document document)
有参构造
|
Modifier and Type | Method and Description |
---|---|
Document |
toPdf(File source)
转pdf
|
abstract Document |
toPdf(InputStream source)
转pdf
|
Document |
toPdf(String source)
转pdf
|
boolean |
toRtf(File output)
转word
|
abstract boolean |
toRtf(OutputStream output)
转rtf
|
boolean |
toRtf(String output)
转word
|
toFile, toPdf, toPdf
getDocument
public AbstractRichTextConvertor(Document document)
document
- 文档public abstract Document toPdf(InputStream source)
source
- 源输入流public abstract boolean toRtf(OutputStream output)
output
- 输出流public boolean toRtf(String output)
output
- 输出路径public boolean toRtf(File output)
output
- 输出文件Copyright © 2025. All rights reserved.