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:
=============================
< P> Content tableChapter 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.
Look at this next bit with each element you want to add.
cb.BeginText () cb.SetFontAndSize (BF, 12 C) B.SetColorFill (color) represents the color to make a color object. You want to pass in cb.ShowTextAligned (1, "Table of Contents", X, Y, 0) X & Y element's cb.EndText ()
Comments
Post a Comment