diff --git a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs index 3993b0ec..b4452d39 100644 --- a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs +++ b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs @@ -219,7 +219,23 @@ namespace Volian.Print.Library chk.SetTextRise(-.25F * chk.Font.Size); else chk.SetTextRise(0); - + switch (visualText.Format.Alignment) + { + case RtfTextAlignment.Center: + _MyParagraph.Alignment = Element.ALIGN_CENTER; + break; + case RtfTextAlignment.Justify: + _MyParagraph.Alignment = Element.ALIGN_JUSTIFIED; + break; + case RtfTextAlignment.Left: + _MyParagraph.Alignment = Element.ALIGN_LEFT; + break; + case RtfTextAlignment.Right: + _MyParagraph.Alignment = Element.ALIGN_RIGHT; + break; + default: + break; + } if (_MyFont == null) { _MyFont = font;