We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF/RTF with TOC from FO

Hi All,
We are generating an RTF document from XML using XSL:FO.
Now there is a new requirement that, we need to support “Table Of Contents” for this document.
From some sites we understood that XSL:FO doesn’t support TOC.
Please suggest us a solution for this.

I just wanted to check some more possibilities.
Is there any way I can convert an XML to PDF without FO or API?
In other words, is there any vendor specific XML format to which I can convert my XML and then convert that XML to PDF. Is there is does it support TOCs?

Thank you for your interest in Aspose products.
In order to insert TOC into an RTF document you can use Aspose.Words. Please see the following links in our documentation:
Then you can convert it to PDF using Aspose.Words and Aspose.Pdf together. How to do this you can read here:
Conversion is performed in two steps. First we ask Aspose.Words.Document object to save as intermediate Aspose.Pdf XML format. It is understood by Aspose.Pdf to generate the result PDF document. Of course you can create this XML manually but it’s a big mess. Also this could bring compatibility issues when upgrading to the later versions even in spite of the fact their format is documented. So it’s much more convenient to use our libraries in pair.
Please let us know if you have any further questions. We’ll help you build your solution as much as we could.

Hi Viktor,
Thanks for the reply.
We are already generating the RTF from XML using XSL:FO and a convertor.
Does Aspose support modifying existing RTF documents?
Can I read an RTF document and insert “Table of Contents” at the begining?
Thanks in advance.

Hello Jossey.

  1. Yes, Aspose.Words supports reading, modifying and writing RTF documents amongst with many other formats.
  2. Yes, you can add TOC to the document. Please follow this link to know more: