public class Html2ImageWrapper extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Html2ImageWrapper.Builder |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
asFile(String absFileName) |
BufferedImage |
asImage() |
String |
asString() |
static Html2ImageWrapper.Builder |
of(String html)
html片段,可以额外指定css样式的渲染方式
|
static Html2ImageWrapper.Builder |
ofDoc(String html)
对一个完整的html进行渲染
|
static Html2ImageWrapper.Builder |
ofMd(MarkdownEntity entity)
对markdown文档进行渲染
|
public static Html2ImageWrapper.Builder of(String html)
html - public static Html2ImageWrapper.Builder ofMd(MarkdownEntity entity)
entity - public static Html2ImageWrapper.Builder ofDoc(String html) throws Exception
html - Exceptionpublic BufferedImage asImage()
public boolean asFile(String absFileName) throws IOException
IOExceptionpublic String asString() throws IOException
IOExceptionCopyright © 2021. All rights reserved.