We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Page numbering

Hi
I have a created a report by amalgamating a numbe of pdfs, some of which I create. Others already exist

PdfLoadedDocument

loadedDocument = new PdfLoadedDocument(addfilename);

docFinal.Append(loadedDocument);

Which was truly simple to do.

However I need to have pagination starting from the first document and ending with the last page of the last one.

Is this possible?

Secondly, each of these documents represents a section. is it possibnle to add a bookmark to these

sections.

Thanks

Jonathan

 

 

 

 

1 Reply

KC Karthikeyan Chandrasekar Syncfusion Team April 2, 2014 04:13 AM UTC

Hi Jonathan,

Thank you for using Syncfusion Products.

 

We can able to draw the page number in the loaded document, please use the below code snippet.

            PdfLoadedDocument ldDoc = new PdfLoadedDocument(path);

            int i = 1;

            foreach (PdfPageBase page in ldDoc.Pages)

            {

                page.Graphics.DrawString(i, font, brush, point);

                i++;

            }

 

We can also create the Bookmark with our desired location, please refer the below links for more detail.

 

http://help.syncfusion.com/cr/cref_files/windows%20forms/pdf/html/757808ee-a870-faa4-2aff-9fa98d94e09d.htm

http://help.syncfusion.com/cr/cref_files/windows%20forms/pdf/html/bcbbf4e0-6223-e66d-529a-d70502b45040.htm

 

Please let us know if you need any further assistance.

Thanks,

Karthikeyan.C


Loader.
Live Chat Icon For mobile
Up arrow icon