c# - Generate table of content using itextsharp -
What I am doing is to prepare a PDF manual from the database. I need to generate a content table with page number. As with page numbers there are two chapters: ============================= Content table Chapter 1 ----- 3 Chapter 2 ----- 17 ======== = ============================ Lesson "Chapter 1 -----" is the general paragraph. But using the PDF template is to create the page number "3" because it can only be known later but the PDF template is fully positioned. How do I know the status of a PDF template? Am i right on this How can I figure out how or should I use other methods? I have removed a bit of code to take you on your way. Allows the text to be anywhere using X and Y anywhere on the page. You can actually use iTextSharp to create paragraph and margin support, but, just need this will be useful. PdfStamper Dim TemplateReader PdfReader = New PdfReader (yourFileName) Driven currentPage PdfImportedPage as std = 0) Look at this next b...