AD
Administrator
Syncfusion Team
October 27, 2007 07:31 AM UTC
Hi Frank,
Sorry for the delayed response.
If your intention is to center the PdfPageNumberField , then you can control its location while drawing the footer string in the PDF document using PdfCompositeField.
The following code snippet illustrates this.
[C#]
//Create page number field
PdfPageNumberField pageNumber = new PdfPageNumberField();
//Create page count field
PdfPageCountField count = new PdfPageCountField(font, brush);
// Draw the footer
PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count);
compositeField.Bounds = footer.Bounds;
compositeField.Draw(footer.Graphics, new PointF(270, 40));
Please refer the sample that shipped with Essential studio in the below location.
[Install drive]:\Documents and Settings\UserName\My Documents\Syncfusion\EssentialStudio\5.2.0.25\Windows\...\HeadersAndFooters
Please let us know if this helps you.
Thank you for your interest in Syncfusion products.
Regards,
Jaya