Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Get pdf page number by acrofield using itext7 with C Ask Question. Asked 4 years, 5 months ago. Active 4 years, 5 months ago. Viewed 4k times. Hence, in summary report, I have at least 3 group of reports which may contain one or more than one page each i.
You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account.
Notify me of new comments via email. You will need to import the following namespaces. Imports System. Imports iTextSharp. Adding Page numbers to existing PDF. The PDF file to which the page numbers needs to be added is read into a Byte array from the disk. Then the byte array is read into a PdfReader object and a loop is executed over the pages of the PDF and the page number is added to each page using the PdfStamper class.
GetFont "Arial" , 12, Font. BLACK ;. ShowTextAligned stamper. GetUnderContent i , Element. ToString , blackFont , f, 15f, 0 ;. ToArray ;. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 9 years, 6 months ago. Active 2 years, 8 months ago. Viewed 43k times. Alexis Pigeon 7, 11 11 gold badges 38 38 silver badges 44 44 bronze badges. Add a comment. Active Oldest Votes.
BugOrFeature 3 3 silver badges 9 9 bronze badges. Alexis Pigeon Alexis Pigeon 7, 11 11 gold badges 38 38 silver badges 44 44 bronze badges. Any idea how to do this in iText? Am struggling to find a similar example! Below is the code of class PageNumeration created using the previous comment for this purpose.
0コメント