I paste my entire code to generate my pdf document. The footer with page number indication works in each page for me:
Code:
Dim style As Style
pdfDocument = New Document()
[.......]
Dim section As Section
Dim r As Row
Dim c As Column
section = pdfDocument.AddSection()
[...........]
'Aggiungo il numero di pagina in basso a destra
p = New Paragraph()
p.AddText("Pag. ")
p.AddPageField()
p.AddText(" di ")
p.AddNumPagesField()
p.Format.Alignment = ParagraphAlignment.Right
section.Footers.Primary.Add(p)
I removed the code I think aren't usefull for your needs...