/** * Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties. * @param props ChainedProperties * @return a HyphenationEvent * @since 2.1.2 */ public static HyphenationEvent getHyphenation(ChainedProperties props) { return getHyphenation(props.getProperty("hyphenation")); }
/** * Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties. * @param props ChainedProperties * @return a HyphenationEvent * @since 2.1.2 */ public static HyphenationEvent getHyphenation(ChainedProperties props) { return getHyphenation(props.getProperty("hyphenation")); }
/** * Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties. * @param props ChainedProperties * @return a HyphenationEvent * @since 2.1.2 */ public static HyphenationEvent getHyphenation(ChainedProperties props) { return getHyphenation(props.getProperty("hyphenation")); }
int s = 0; if (value.startsWith("+") || value.startsWith("-")) { String old = getProperty("basefontsize"); if (old == null) old = "12";
int s = 0; if (value.startsWith("+") || value.startsWith("-")) { String old = getProperty("basefontsize"); if (old == null) old = "12";
int s = 0; if (value.startsWith("+") || value.startsWith("-")) { String old = getProperty("basefontsize"); if (old == null) old = "12";
public Font getFont(ChainedProperties props) { String face = props.getProperty(ElementTags.FACE); if (face != null) { StringTokenizer tok = new StringTokenizer(face, ","); if (props.hasProperty(HtmlTags.S)) style |= Font.STRIKETHRU; String value = props.getProperty(ElementTags.SIZE); float size = 12; if (value != null) size = Float.parseFloat(value); Color color = Markup.decodeColor(props.getProperty("color")); String encoding = props.getProperty("encoding"); if (encoding == null) encoding = BaseFont.WINANSI;
public static Font getFont(ChainedProperties props) { String face = props.getProperty("face"); if (face != null) { StringTokenizer tok = new StringTokenizer(face, ","); if (props.hasProperty("u")) style |= Font.UNDERLINE; String value = props.getProperty("size"); float size = 12; if (value != null) size = Float.valueOf(value).floatValue(); Color color = decodeColor(props.getProperty("color")); String encoding = props.getProperty("cjk_encoding"); String embededstr = props.getProperty("cjk_embeded"); if(encoding == null || encoding.equals("")) encoding = BaseFont.WINANSI;
public Font getFont(ChainedProperties props) { String face = props.getProperty(ElementTags.FACE); if (face != null) { StringTokenizer tok = new StringTokenizer(face, ","); if (props.hasProperty(HtmlTags.S)) style |= Font.STRIKETHRU; String value = props.getProperty(ElementTags.SIZE); float size = 12; if (value != null) size = Float.parseFloat(value); Color color = Markup.decodeColor(props.getProperty("color")); String encoding = props.getProperty("encoding"); if (encoding == null) encoding = BaseFont.WINANSI;
public Font getFont(ChainedProperties props) { String face = props.getProperty(ElementTags.FACE); if (face != null) { StringTokenizer tok = new StringTokenizer(face, ","); if (props.hasProperty(HtmlTags.S)) style |= Font.STRIKETHRU; String value = props.getProperty(ElementTags.SIZE); float size = 12; if (value != null) size = Float.parseFloat(value); Color color = Markup.decodeColor(props.getProperty("color")); String encoding = props.getProperty("encoding"); if (encoding == null) encoding = BaseFont.WINANSI;
public static void createParagraph(Paragraph p, ChainedProperties props) { String value = props.getProperty("align"); if (value != null) { if (value.equalsIgnoreCase("center")) setParagraphLeading(p, props.getProperty("leading")); value = props.getProperty("before"); if (value != null) { try { value = props.getProperty("after"); if (value != null) { try { value = props.getProperty("extraparaspace"); if (value != null) { try {
public static void createParagraph(Paragraph p, ChainedProperties props) { String value = props.getProperty("align"); if (value != null) { if (value.equalsIgnoreCase("center")) setParagraphLeading(p, props.getProperty("leading")); value = props.getProperty("before"); if (value != null) { try { value = props.getProperty("after"); if (value != null) { try { value = props.getProperty("extraparaspace"); if (value != null) { try {
public static void createParagraph(Paragraph p, ChainedProperties props) { String value = props.getProperty("align"); if (value != null) { if (value.equalsIgnoreCase("center")) setParagraphLeading(p, props.getProperty("leading")); value = props.getProperty("before"); if (value != null) { try { value = props.getProperty("after"); if (value != null) { try { value = props.getProperty("extraparaspace"); if (value != null) { try {
} else if (key.equals(Markup.CSS_KEY_FONTSIZE)) { float actualFontSize = Markup.parseLength(cprops .getProperty(ElementTags.SIZE), Markup.DEFAULT_FONT_SIZE); if (actualFontSize <= 0f) String ss = prop.getProperty(key).trim(); float actualFontSize = Markup.parseLength(cprops .getProperty(ElementTags.SIZE), Markup.DEFAULT_FONT_SIZE); if (actualFontSize <= 0f)
String value = props.getProperty("colspan"); if (value != null) cell.setColspan(Integer.parseInt(value)); value = props.getProperty("align"); if (tag.equals("th")) cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setHorizontalAlignment(Element.ALIGN_JUSTIFIED); value = props.getProperty("valign"); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); if (value != null) { cell.setVerticalAlignment(Element.ALIGN_BOTTOM); value = props.getProperty("border"); float border = 0; if (value != null) border = Float.parseFloat(value); cell.setBorderWidth(border); value = props.getProperty("cellpadding"); if (value != null) cell.setPadding(Float.parseFloat(value)); cell.setUseDescender(true); value = props.getProperty("bgcolor"); cell.setBackgroundColor(Markup.decodeColor(value));
} else if (key.equals(Markup.CSS_KEY_FONTSIZE)) { float actualFontSize = Markup.parseLength(cprops .getProperty(ElementTags.SIZE), Markup.DEFAULT_FONT_SIZE); if (actualFontSize <= 0f) String ss = prop.getProperty(key).trim(); float actualFontSize = Markup.parseLength(cprops .getProperty(ElementTags.SIZE), Markup.DEFAULT_FONT_SIZE); if (actualFontSize <= 0f)
} else if (key.equals(Markup.CSS_KEY_FONTSIZE)) { float actualFontSize = Markup.parseLength(cprops .getProperty(ElementTags.SIZE), Markup.DEFAULT_FONT_SIZE); if (actualFontSize <= 0f) String ss = prop.getProperty(key).trim(); float actualFontSize = Markup.parseLength(cprops .getProperty(ElementTags.SIZE), Markup.DEFAULT_FONT_SIZE); if (actualFontSize <= 0f)
String value = props.getProperty("colspan"); if (value != null) cell.setColspan(Integer.parseInt(value)); value = props.getProperty("align"); if (tag.equals("th")) cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setHorizontalAlignment(Element.ALIGN_JUSTIFIED); value = props.getProperty("valign"); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); if (value != null) { cell.setVerticalAlignment(Element.ALIGN_BOTTOM); value = props.getProperty("border"); float border = 0; if (value != null) border = Float.parseFloat(value); cell.setBorderWidth(border); value = props.getProperty("cellpadding"); if (value != null) cell.setPadding(Float.parseFloat(value)); cell.setUseDescender(true); value = props.getProperty("bgcolor"); cell.setBackgroundColor(Markup.decodeColor(value));
String value = props.getProperty("colspan"); if (value != null) cell.setColspan(Integer.parseInt(value)); value = props.getProperty("align"); if (tag.equals("th")) cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setHorizontalAlignment(Element.ALIGN_JUSTIFIED); value = props.getProperty("valign"); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); if (value != null) { cell.setVerticalAlignment(Element.ALIGN_BOTTOM); value = props.getProperty("border"); float border = 0; if (value != null) border = Float.parseFloat(value); cell.setBorderWidth(border); value = props.getProperty("cellpadding"); if (value != null) cell.setPadding(Float.parseFloat(value)); cell.setUseDescender(true); value = props.getProperty("bgcolor"); cell.setBackgroundColor(Markup.decodeColor(value));
String href = cprops.getProperty("href"); if (href != null) { ArrayList chunks = currentParagraph.getChunks();