Hello.
I have tried to convert a simple text file (RTL-formatted in Hebrew language) to PDF format.
I am attaching the original text file (Example.txt) and the PDF result (PDFfromTxt.pdf).
Thanks,
Alex.
Hi Alex,
loadOptions.LoadFormat = LoadFormat.Text;
loadOptions.Encoding = Encoding.GetEncoding(1255);
Document doc = new Document(@"C:\Temp\Example.txt", loadOptions);
doc.Save(@"C:\temp\out.pdf");
Hello.
Hi Alex,
loadOptions.LoadFormat = LoadFormat.Text;
loadOptions.Encoding = Encoding.GetEncoding(1255);
Document doc = new Document(@"C:\Temp\Example.txt", loadOptions);
foreach (Paragraph para in doc.GetChildNodes(NodeType.Paragraph, true))
para.ParagraphFormat.Bidi = true;
doc.Save(@"C:\temp\outRTL.pdf");
Hello.
Hi Alex,