How would i go about inserting page numbers on the total merged PDF document. I want to skip the first page which is the title but insert the rest of the page number bottom middle of the page 1,2,3 etc in that style.
Thanks
Page Numbers
Re: Page Numbers
Support · May 9, 2007Hello,
You can do this by creating a template and adding the page numbering label to the template. Apply the template across the entire document and then set the ApplyDocumentTemplate property for the first page to false and that will prevent the page numbering label from being display on the first page.
Thanks,
ceTe Software Support Team
Re: Page Numbers
Forum member · May 9, 2007Hello,
This is how i send my pdf document to the browser.
tempPDFDOcument = New PdfDocument(pdfContent)
pdfContent = Nothing
ReportPDF.Append(tempPDFDOcument)
tempPDFDOcument = Nothing
ReportPDF.DrawToWeb()
so how would i go about making the template. I am very new to Dynamic PDF. a code example would be great. I search the HELP file and couldn't really find exactly what i need there is so much on there.
Thanks again and appreciate the quick reply
Re: Page Numbers
Support · May 9, 2007You will want to create and add a template to your Merge Document object "ReportPDF". Add a PageNumberingLabel object to that template. Then make sure to set the Merge Document's first Page's ApplyDocumentTempalte property to False. This will prevent the Template (with the page numbers) from being applied to the first page of the document.
We do not have a specific example that does this exact thing in our help documentation but you can take a look at our Help Topic on Document Templates for further assistance, http://www.DynamicPDF.com/Support/NET_Help_Library_07_03/Templates.html
.
In general, the pseudo-code may look something like this:
tempPDFDOcument = New PdfDocument(pdfContent)
pdfContent = Nothing
ReportPDF.Append(tempPDFDOcument)
tempPDFDOcument = Nothing
' Create and add template
Dim MyTemplate As Template = New Template()
MyTemplate.Elements.Add( New PageNumberingLabel( ... ) )
ReportPDF.Template = MyTemplate
' Set pages template property
ReportPDF.Pages(0).ApplyDocumentTempalte = False
ReportPDF.DrawToWeb()
Thanks,
ceTe Software Support Team
Re: Page Numbers
Forum member · May 9, 2007Thank you very much! That helped big time! Now i just have to fool around with the positioning.
Again Thank you ceTe support Team.