0

Can I make a document in RUN_DIRECTION_RTL when using iTextSharp.text.Document to Export RTf Document?

I made it before but using pdf not rtf as:

PdfWriter writer = iTextSharp.text.pdf.PdfWriter.GetInstance(pdfDoc,Page.Response.OutputStream);   
writer.RunDirection = iTextSharp.text.pdf.PdfWriter.RUN_DIRECTION_RTL;
Smittey
  • 2,475
  • 10
  • 28
  • 35
  • 1
    RTL is only for PDF. – Paulo Soares Dec 15 '15 at 09:21
  • thx dear but is there any alternative solution to do it using rtf?? – Sherief Mohamed Sherief Dec 15 '15 at 09:32
  • 2
    Not with itextsharp, besides, rtf was removed from itextsharp in 2009. – Paulo Soares Dec 15 '15 at 10:36
  • there any alternative solution with any dll?? or to convert this pdf file to rtf file? – Sherief Mohamed Sherief Dec 15 '15 at 14:54
  • One alternative is to try to extract the text with formatting and create your own RTF document. See [this post](http://stackoverflow.com/a/6884297/231316) from a long time ago for a very basic start on the text with formatting part. – Chris Haas Dec 16 '15 at 14:36
  • iTextSharp has been depreciated and replaced with [iText7](https://itextpdf.com/en/products/itext-7) which is offered under an [AGPL license](https://www.gnu.org/licenses/agpl-3.0.html) or a paid license for closed source commercial use. They also have an add-on called [pdfCalligraph](https://itextpdf.com/en/products/itext-7/pdfcalligraph) which offers extended support for RTL languages. – Naftoli Ost Oct 11 '21 at 14:59

0 Answers0