Browse Source

Merge pull request #261 in CORE/base-third from ~HUGH.C/base-third:bugfix/10.0 to bugfix/10.0

* commit '8571a7f6953fad344bf549481fd9fbee76ae271c':
  CUSTBUG-43276 pdf导出后。html显示的图片被裁切了
bugfix/10.0
ju.ju 5 years ago
parent
commit
3f0fad6a2a
  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