|
|
@ -59,8 +59,6 @@ import com.fr.third.v2.lowagie.text.Utilities; |
|
|
|
import com.fr.third.v2.lowagie.text.Chunk; |
|
|
|
import com.fr.third.v2.lowagie.text.Chunk; |
|
|
|
import com.fr.third.v2.lowagie.text.Font; |
|
|
|
import com.fr.third.v2.lowagie.text.Font; |
|
|
|
import com.fr.third.v2.lowagie.text.Image; |
|
|
|
import com.fr.third.v2.lowagie.text.Image; |
|
|
|
import com.fr.third.v2.lowagie.text.SplitCharacter; |
|
|
|
|
|
|
|
import com.fr.third.v2.lowagie.text.Utilities; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* A <CODE>PdfChunk</CODE> is the PDF translation of a <CODE>Chunk</CODE>. |
|
|
|
* A <CODE>PdfChunk</CODE> is the PDF translation of a <CODE>Chunk</CODE>. |
|
|
@ -190,6 +188,7 @@ public class PdfChunk { |
|
|
|
splitCharacter = (SplitCharacter)noStroke.get(Chunk.SPLITCHARACTER); |
|
|
|
splitCharacter = (SplitCharacter)noStroke.get(Chunk.SPLITCHARACTER); |
|
|
|
if (splitCharacter == null) |
|
|
|
if (splitCharacter == null) |
|
|
|
splitCharacter = DefaultSplitCharacter.DEFAULT; |
|
|
|
splitCharacter = DefaultSplitCharacter.DEFAULT; |
|
|
|
|
|
|
|
this.height = other.getHeight(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -854,6 +853,15 @@ public class PdfChunk { |
|
|
|
return font.width(c); |
|
|
|
return font.width(c); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String toHtmlString() { |
|
|
|
|
|
|
|
//todo 需要添加其他样式属性
|
|
|
|
|
|
|
|
StringBuffer htmlString = new StringBuffer(); |
|
|
|
|
|
|
|
htmlString.append("<span>"); |
|
|
|
|
|
|
|
htmlString.append(value); |
|
|
|
|
|
|
|
htmlString.append("</span>"); |
|
|
|
|
|
|
|
return htmlString.toString(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static boolean noPrint(int c) { |
|
|
|
public static boolean noPrint(int c) { |
|
|
|
return ((c >= 0x200b && c <= 0x200f) || (c >= 0x202a && c <= 0x202e)); |
|
|
|
return ((c >= 0x200b && c <= 0x200f) || (c >= 0x202a && c <= 0x202e)); |
|
|
|
} |
|
|
|
} |
|
|
|