Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.pdf.kit
Class FormattedText

java.lang.Object
  extended bycom.aspose.pdf.kit.FormattedText

public class FormattedText
extends java.lang.Object

Represents text with color,size ,font settings.


Constructor Summary
FormattedText(java.lang.String text)
          Initializes the Formattedtext with default setting (FontColor = new FontColor(0,0,0), FontStyle.TimesRoman£¬EncodingType.Winansi,texSize = 12).
FormattedText(java.lang.String text, FontColor textColor, java.lang.String textFont, java.lang.String textEncoding, boolean embedded, float textSize)
          Initializes the Formattedtext.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormattedText

public FormattedText(java.lang.String text)
              throws java.io.IOException,
                     PdfKitException
Initializes the Formattedtext with default setting (FontColor = new FontColor(0,0,0), FontStyle.TimesRoman£¬EncodingType.Winansi,texSize = 12).

Parameters:
text - String The content in string.
Throws:
java.io.IOException
PdfKitException

FormattedText

public FormattedText(java.lang.String text,
                     FontColor textColor,
                     java.lang.String textFont,
                     java.lang.String textEncoding,
                     boolean embedded,
                     float textSize)
              throws java.io.IOException,
                     PdfKitException
Initializes the Formattedtext.

Parameters:
text - String The content in String.
textColor - FontColor The color of the text showed.
textFont - String The font of the text showed.
textEncoding - String The font of the text showed.
embedded - boolean If the font has to be embedded.
textSize - float The size of the text.
Throws:
java.io.IOException
PdfKitException