Hello,
I want to print a text in the left margin vertically; is this possible.
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile("input.pdf");
PdfPageBase page = pdf.Pages[0];
//initialize a PdfFreeTextAnnotation
RectangleF rect = new RectangleF(0, 40, 40, 100);
PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(rect);
//specify content
textAnnotation.Text = "Free Text Annotation";
//set properties of annotation
PdfFont font = new PdfFont(PdfFontFamily.TimesRoman, 10);
PdfAnnotationBorder border = new PdfAnnotationBorder(1f);
textAnnotation.Font = font;
textAnnotation.Border = border;
textAnnotation.BorderColor = Color.Black;
textAnnotation.LineEndingStyle = PdfLineEndingStyle.Circle;
textAnnotation.Opacity = 0.8f;
//add annotation to page
page.AnnotationsWidget.Add(textAnnotation);
pdf.SaveToFile("out.pdf");