Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good pple

How to add a header/footer to a pdf document containing tables that overlaps to other pages using iTextSharp? The header/footer should appear on everypage

Thank you in advance
Posted
Updated 9-Dec-14 19:28pm
v2

1 solution

Got it.The header event must be placed before opening the doc.
C#
using (PdfWriter writer = PdfWriter.GetInstance(doc, fs))
                {
                    //now inserting header
                    writer.PageEvent = new Header();

                    // end of header
                    // Step 4: Openning the Document
                    doc.Open();
.
.
.
.
.
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900