Hiya,
I'm trying to figure out how I can set text alignment (left, centre, right) using the low level API. A snippet of my code is below:
Quote:
var textLayer = new PdfTextLayer {
Font = new PdfFont(fieldDescription.FontFace.ToString(), fieldDescription.FontSize)
};
var textContent = new PdfTextContent("Hello World!");
textContent.PositionMode = PdfTextPositionMode.Offset;
textContent.Offset = new PdfPoint(300, 400);
var convertFromString = new ColorConverter().ConvertFromString(fieldDescription.FontColour);
if (convertFromString != null) {
textContent.NonStrokingColor = (Color)convertFromString;
}
textLayer.Contents.Add(textContent);
page.Contents.Add(textLayer);
Any ideas?