tag:blogger.com,1999:blog-2556297354150443994.post6560015978958244077..comments2022-04-07T18:49:25.987-07:00Comments on Developer's Stuff: Itextsharp place footer at one page and at bottomhardi.modihttp://www.blogger.com/profile/05590372920603163001noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2556297354150443994.post-57373173914545862702013-02-07T05:48:59.426-08:002013-02-07T05:48:59.426-08:00In case it helps, here is my C# version.
...In case it helps, here is my C# version.<br /><br /> public void PlaceFooter()<br /> {<br /> Rectangle page = doc.PageSize;<br /> PdfPTable EndTable = CreatePlacementTable(false, 100);<br /> EndTable.DefaultCell.Padding = 2f;<br /> EndTable.HorizontalAlignment = Element.ALIGN_JUSTIFIED;<br /><br /> //Add anything you want into this EndTable<br /> EndTable.AddCell("This is my footer");<br /><br /> EndTable.TotalWidth = page.Width - doc.LeftMargin - doc.RightMargin;<br /> EndTable.WriteSelectedRows(0, -1, doc.LeftMargin, EndTable.TotalHeight + doc.marginBottom, writer.DirectContent);<br /> }Anonymoushttps://www.blogger.com/profile/17063107615366644700noreply@blogger.comtag:blogger.com,1999:blog-2556297354150443994.post-54407385023224240932013-01-17T11:45:45.564-08:002013-01-17T11:45:45.564-08:00The code you posted worked for Java I guess, but I...The code you posted worked for Java I guess, but I used it in C# and with a few fixed It worked the way I wanted, thanks.-- Reedyseth --https://www.blogger.com/profile/13770979958794149720noreply@blogger.com