Browse Source

Merge pull request #45 in CORE/base-third from ~KERRY/base-third:feature/10.0 to feature/10.0

* commit '5f5418e6f2cde9949f211dd0c24495a14b5e3336':
  无jira任务,打包失败
10.0
superman 7 years ago
parent
commit
a6541a5578
  1. 6
      fine-itext/src/com/fr/third/v2/lowagie/text/pdf/PdfChunk.java

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

@ -268,10 +268,12 @@ public class PdfChunk {
noStroke.put(Chunk.COLOR, f.getColor());
// noStroke.put(Chunk.ENCODING, font.getFont().getEncoding());
if(attributes.get("padding-left") != null){
indent.setLeft((float)attributes.get("padding-left"));
String paddingLeft = (String)attributes.get("padding-left");
indent.setLeft(Float.parseFloat(paddingLeft));
}
if(attributes.get("padding-right") != null){
indent.setRight((float)attributes.get("padding-right"));
String paddingRight = (String)attributes.get("padding-right");
indent.setRight(Float.parseFloat(paddingRight));
}
Object obj[] = (Object[])attributes.get(Chunk.IMAGE);
if (obj == null) {

Loading…
Cancel
Save