When viewing the output PDF in Acrobat Reader 7.0 of a merge operation, the page numbering at the bottom often shows a combination of page numbers. For example "36 (2 of 136)" Is there a way to reset the numbering of the output document so it just shows the page number in relation to the whole? (ex "36 of 136")
Thanks!
Page Number Display
Re: Page Number Display
Support · Sep 7, 2006Hello,
Our product will not reset the page numbers when merging different PDF documents. The reason you see "(2 of 136)" format of the PageNumberingLabel is likely because you are using the string "%%CP%% (%%CP%% of %%TP%%)" to display the page numbers in the output PDF document.
In order to show the PageNumberingLabel in "36 of 136" format you have to use "%%CP%% of %%TP%%" as the string token in the constructor of the PageNumberingLabel.
If you still continue getting the same behavior, please forward the PDF and the code you are using to our [^a|mailto:support@cete.com|Support Team^] and they will look into it further.
Thanks,
ceTe Software Support Team
Re: Page Number Display
Forum member · Sep 8, 2006Actually, I meant that the page numbering was being displayed differently within Acrobat (not Reader) itself.
At the bottom of the application is a navigation area right in the middle of the program. You can go to First Page, Previous Page, Next Page, and Last Page. Between the Previous and Next Page buttons is a page display. On some of my merges documents, it shows "1 (1 of 20)" I'm not actually putting the numbers on the PDF itself.
I was wondering if there was some kind of internal numbering mechanism in a pdf that would keep track of the page number that original page came from and if it could be over written.
Re: Page Number Display
Support · Sep 8, 2006Hello,
Yes, in order to change the formatting of the page numbering label, you have to set the entire document to be one section and set the page numbering style for the section. Following is the sample code block:
// Create a PDF Document
Document document = new Document();
//Create a template object and add a page numbering label
Template template = new Template();
template.Elements.Add( new PageNumberingLabel("%%SP%% of %%ST%%", 0, 680, 512, 12, Font.Helvetica, 12, TextAlign.Center ) );
document.Template = template;
//Begin the section
document.Sections.Begin( NumberingStyle.Numeric, template );
//Add two pages
document.Pages.Add( new Page() ); //Page 1
document.Pages.Add( new Page() ); //Page 2
// Save the PDF document
document.Draw( @"C:\MyDocument.pdf" );
Thanks,
ceTe Software Support Team