|
|
|
@ -788,10 +788,11 @@ public class PdfChunk {
|
|
|
|
|
|
|
|
|
|
public String toHtmlString() { |
|
|
|
|
StringBuffer htmlString = new StringBuffer(); |
|
|
|
|
if(this.isImage()){ |
|
|
|
|
htmlString.append("<img src='").append(image.getSrcString()).append("'").append("/>"); |
|
|
|
|
if (this.isImage()) { |
|
|
|
|
htmlString.append("<img src='").append(image.getSrcString()).append("'"). |
|
|
|
|
append(" style='width:").append(image.getPlainWidth()).append("px"). |
|
|
|
|
append(" height:").append(image.getPlainHeight()).append("px'").append("/>"); |
|
|
|
|
return htmlString.toString(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//todo 需要添加其他样式属性
|
|
|
|
|
htmlString.append("<span style='"); |
|
|
|
|