Add page in the middle of itextsharp -
I am creating a PDF using iTextSharp and after adding all my pages, I add a table of contents I want to be able to initially. Is there a way to "rewind" the PDF driver?
var d = new document (pages altitudes); PdfWriter w = PdfWriter.GetInstance (D, new filestream ("test.pdf", FileMode.Create)); D.Open (); (Var i = 0; i & lt; 200; i ++) for {d.Add (New paragraph ("Hola Sener Page:" + w.CurrentPageNumber.ToString ()); } W.GoToPage1; D.Add ("Table of Materials Here"); D.Close ();
Is this possible?
Not so, after leaving the given page after the author, all for that page Some output is written on the stream. Any page-related links are already embedded.
How to create an example or two floating TOC on the web somewhere, see if I can dig one ...
>
In the above example, they produce the last TOC, and then fold it in front before saving the PDF. Learn something new every day.
Comments
Post a Comment