|
|
@ -50,9 +50,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
package com.fr.third.v2.lowagie.text.html.simpleparser; |
|
|
|
package com.fr.third.v2.lowagie.text.html.simpleparser; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.third.v2.lowagie.text.html.utils.BackgroundUtil; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.Iterator; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
import java.util.Properties; |
|
|
|
import java.util.Properties; |
|
|
|
import java.util.StringTokenizer; |
|
|
|
import java.util.StringTokenizer; |
|
|
|
import com.fr.third.v2.lowagie.text.Chunk; |
|
|
|
import com.fr.third.v2.lowagie.text.Chunk; |
|
|
@ -134,9 +136,12 @@ public class FactoryProperties { |
|
|
|
else if (value.equalsIgnoreCase("justify")) |
|
|
|
else if (value.equalsIgnoreCase("justify")) |
|
|
|
p.setAlignment(Element.ALIGN_JUSTIFIED); |
|
|
|
p.setAlignment(Element.ALIGN_JUSTIFIED); |
|
|
|
} |
|
|
|
} |
|
|
|
if(props.hasPropertyInChain("div", "background")){ |
|
|
|
Map<String, String> bgAttrMap = BackgroundUtil.parseBgAttr4BlockTag(props); |
|
|
|
p.setBackground(props.getPropertyFromChain("div", "background")); |
|
|
|
if (null != bgAttrMap) { |
|
|
|
} |
|
|
|
for (Map.Entry<String, String> entry : bgAttrMap.entrySet()) { |
|
|
|
|
|
|
|
p.setAttribute(entry.getKey(), entry.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if(props.hasProperty("line-height")){ |
|
|
|
if(props.hasProperty("line-height")){ |
|
|
|
p.setAttribute("line-height", props.getProperty("line-height")); |
|
|
|
p.setAttribute("line-height", props.getProperty("line-height")); |
|
|
|
} |
|
|
|
} |
|
|
|