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