|
The following example adds two blocks of styled text to a
document. The first block is in 96.5 point type and the second is
in 192.5 point type.
using var doc = new Doc();
doc.TextStyle.Size = 96.5;
doc.AddText("Small ");
doc.TextStyle.Size = 192.5;
doc.AddText("Big");
doc.Save(Server.MapPath("stylesize.pdf"));
Using doc As New Doc()
doc.TextStyle.Size = 96.5
doc.AddText("Small ")
doc.TextStyle.Size = 192.5
doc.AddText("Big")
doc.Save(Server.MapPath("stylesize.pdf"))
End Using

stylesize.pdf
Also see example code in: Doc TextStyle Property,
XTextStyle Bold Property, XTextStyle CharSpacing Property, XTextStyle Indent Property, XTextStyle Italic Property, XTextStyle Justification Property, XTextStyle Kerning Property, XTextStyle LeftMargin Property, XTextStyle LineSpacing Property, XTextStyle Outline Property, XTextStyle ParaSpacing Property, XTextStyle Strike Property, XTextStyle Strike2 Property, XTextStyle Underline Property, XTextStyle WordSpacing Property, Page
GetBitmap Function.
|
|
|