Browse Source

Merge pull request #262 in CORE/base-third from bugfix/10.0 to release/10.0

* commit '3f0fad6a2a52717f87d47cc468f1ec39437e90cd':
  CUSTBUG-43276 pdf导出后。html显示的图片被裁切了
release/10.0
neil 5 years ago
parent
commit
368e35484c
  1. 5
      fine-itext/src/com/fr/third/v2/lowagie/text/pdf/PdfChunk.java

5
fine-itext/src/com/fr/third/v2/lowagie/text/pdf/PdfChunk.java

@ -789,9 +789,10 @@ public class PdfChunk {
public String toHtmlString() {
StringBuffer htmlString = new StringBuffer();
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();
}
//todo 需要添加其他样式属性
htmlString.append("<span style='");

Loading…
Cancel
Save