Browse Source

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

* commit '2120b035a533ffb36f4f87cbcc9b5f5d56d54fa0':
  无
  REPORT-11624 Excel和Word导出的html解析支持
research/11.0
ju 6 years ago
parent
commit
0d949530a7
  1. 15
      fine-itext-old/src/com/fr/third/com/lowagie/text/Font.java
  2. 10
      fine-itext-old/src/com/fr/third/com/lowagie/text/Paragraph.java

15
fine-itext-old/src/com/fr/third/com/lowagie/text/Font.java

@ -133,6 +133,14 @@ public class Font implements Comparable {
/** the external font */ /** the external font */
private BaseFont baseFont = null; private BaseFont baseFont = null;
private String fontName = "";
public String getFontName(){
return fontName;
}
// constructors // constructors
/** /**
@ -169,6 +177,13 @@ public class Font implements Comparable {
this.color = color; this.color = color;
} }
public Font(String face, float size, int style, Color color) {
this.fontName = face;
this.size =size;
this.style = style;
this.color = color;
}
/** /**
* Constructs a Font. * Constructs a Font.
* *

10
fine-itext-old/src/com/fr/third/com/lowagie/text/Paragraph.java

@ -104,6 +104,8 @@ public class Paragraph extends Phrase {
/** Does the paragraph has to be kept together on 1 page. */ /** Does the paragraph has to be kept together on 1 page. */
protected boolean keeptogether = false; protected boolean keeptogether = false;
protected String background;
// constructors // constructors
/** /**
@ -499,4 +501,12 @@ public class Paragraph extends Phrase {
return spacingAfter; return spacingAfter;
} }
public void setBackground(String background){
this.background = background;
}
public String getBackground(){
return this.background;
}
} }
Loading…
Cancel
Save