Relaible conversion from RTF to PDF.

Q: Currently we are using a third party tool to generate the PDFs in
our c# app, but we are encountering serious problems, specially in the
handling of Arabic text and RTF tables.

To explain in a nutshell our business problem:

We need do convert multiple RTF documetns to PDF ans merge them with
Table of Content as well as some other files (e.g. XLS, Word, DWG,
etc). We also need to keep the headers and footers and the correct
bookmarks.
--------------------------
A: You could use PDFNet SDK Convert Add-on to convert from RTF,
Office, and other formats to PDF.
As a starting point you may want to take a look at Convert sample
project (http://www.pdftron.com/pdfnet/samplecode.html#Convert).

I tried to convert your sample RTF document using the following
snippet:

PDFNet.Initialize();

using (pdftron.PDF.PDFDoc doc = new PDFDoc()) {
  pdftron.PDF.Convert.ToPdf(doc, "1.rtf");

  // Add a bookmark … (see bookmark sample project)
  int page_num = 1;
  Bookmark b1 = Bookmark.Create(doc, "First Doc");
doc.AddRootBookmark(b1);
b1.SetAction(pdftron.PDF.Action.CreateGoto(
  Destination.CreateFit(doc.GetPage(page_num)) ));

page_num = doc.GetPageCount();
  pdftron.PDF.Convert.ToPdf(doc, "2.rtf");

  Bookmark b1 = Bookmark.Create(doc, "First Doc");
doc.AddRootBookmark(b1);
b1.SetAction(pdftron.PDF.Action.CreateGoto(
  Destination.CreateFit(doc.GetPage(page_num)) ));

  doc.Save("out.pdf", SDFDoc.SaveOptions.e_linearized);
}

and assuming default RTF extension handler (i.e. WordPad). Attached is
the resulting PDF document.