Browse Source

无jira任务,打包失败

10.0
kerry 7 years ago
parent
commit
5f5418e6f2
  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.COLOR, f.getColor());
// noStroke.put(Chunk.ENCODING, font.getFont().getEncoding()); // noStroke.put(Chunk.ENCODING, font.getFont().getEncoding());
if(attributes.get("padding-left") != null){ 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){ 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); Object obj[] = (Object[])attributes.get(Chunk.IMAGE);
if (obj == null) { if (obj == null) {

Loading…
Cancel
Save