We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Header/Footer not being place in correct position on new page


I am experiencing an issue where adding a new header/footer to a newly added page is not placing the header in the correct position.

Below is the loop that is being run immediately after the new page has been added using Document.Pages.Add()

	Dim Header As HeaderFooter = OpenDOcument.Pages().First.Header
	Dim Footer As HeaderFooter = OpenDOcument.Pages().First.Footer

	For Each pdfPage As Page In OpenDOcument.Pages
		If Not IsNothing(Header) Then

			If IsNothing(pdfPage.Header) Then
				pdfPage.Header = Header
			End If
		End If

		If Not IsNothing(Footer) Then
			If IsNothing(pdfPage.Footer) Then
				pdfPage.Footer = Footer
			End If
		End If

The Header and Footers are being added but they are all offset too high so I can not see the Header and the footer is too far up the page.


Would you please share the sample PDF document with us (both input/output). We will test the scenario in our environment and address it accordingly.