Rotate text itext sharp C#

  • 888 Views
  • Last Post 22 November 2018
Stylus STYLUS posted this 09 November 2018

Need to rotate text.

Some help  

iTextSharp.text.Rectangle prevoznik = new iTextSharp.text.Rectangle(340f, 210f, 160f, 50f, 270);
ColumnText ct = new ColumnText(cb);
ct.SetSimpleColumn(prevoznik);
ct.AddElement(new Paragraph("Some text. ", calibri2));
ct.Go();
admin posted this 22 November 2018

You can try

table = new PdfPTable(1);
table.TotalWidth = 72;
paragraph = new Paragraph("c-sharpcode.com");
cell = new PdfPCell(paragraph);
cell.Rotation = 270;
cell.BorderWidth = 0;
table.AddCell(cell);
table.WriteSelectedRows(0, -1, 72, 72, writer.DirectContent);
Close