Well, looking at your code it seems to be doing exactly what you tell it to: rendering only one page.
I'm a bit confused as to why you're using the XGraphics package here. I'm using PDFSharp to render a multi-page table with headers and footers. My rendering code looks something like this:
Code:
Document document = gvPDF.CreateDocument(GridView1);
MiagraDoc.Rendering.PdfDocumentRenderer pdfRenderer = new MiagraDoc.Rendering.PdfDocumentRenderer(true);
pdfRenderer.Document = document;
pdfRenderer.RenderDocument();
pdfRenderer.Save("test.pdf");
There's nothing special about my document, it's just a section with a table and some rows and columns.