diff --git a/fine-itext/src/com/fr/third/v2/lowagie/text/pdf/PdfChunk.java b/fine-itext/src/com/fr/third/v2/lowagie/text/pdf/PdfChunk.java index 3bc23db64..d2c2552e6 100644 --- a/fine-itext/src/com/fr/third/v2/lowagie/text/pdf/PdfChunk.java +++ b/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) {