public DocToPDFConverter _converter = new DocToPDFConverter();
WordDocument FinalDoc = new WordDocument("C:\\test\\mytest.rtf");
PdfDocument document = _converter.ConvertToPDF(FinalDoc);
This produces a PDF file that is 98% of the original in terms of formatting. I have to have 100%.
Just for fun, I decided to take my original RTF file, open it into an IWordDocument object, and Save it as an RTF to see if Syncfusion was the offending element in my equation.
IWordDocument iwd = new WordDocument();
I opened mytest2.rtf in MS Word 2010 and saw the same formatting issues as before.
I tried .....FormatType.Doc.....and FormatType.Word2010....and a few others...and got the same formatting result.
Obviously, Syncfusion is not recognizing some of the RTF features in the original file. This is extremely important to me.
I bound by law from sharing data. Therefore, I cannot supply you with a sample file.
Thank you for your interest in Syncfusion products.
Kindly upgrade to our latest version 22.214.171.124 and let us know whether the mentioned formatting issue has been resolved.
If you are able to reproduce the issue in our latest version (126.96.36.199) then kindly provide us the input RTF document for reproducing the mentioned formatting issue on our side, So that we can further analyze and update you with the appropriate details.
Please let us know if you have any other questions.
Thank you for your update.
We are able to reproduce the mentioned text preservation issue in RTF to PDF conversion. Could you please report this issue through Direct Trac Developer Support System (https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. If you have already reported, please ignore this.