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

Free Support Forum - aspose.com

Saving a document as PDF moves footers into header

Hi,


The following issue occurs when using Aspose.Words 14.10.0.0 to convert a document that has a footer, to PDF. The footer is being rendered beneath the header and above the document body, in the converted PDF.

I’ve attached the original document and the converted PDF. This behaviour is visible on pages 2 to 9.

The code used to do this is very straightforward:
~

Document doc;
using (var inputStream = new MemoryStream(sourceData))
{
doc = new Document(inputStream);
inputStream.Close();
}
using (var outputStream = new MemoryStream())
{
doc.Save(outputStream, SaveFormat.Pdf);
return outputStream.ToArray();
}

~

Could you please have a look at this and let me know why this is the case?

Thanks.

Hi,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 15.11.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-12840. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-12840) have been fixed in this Aspose.Words for .NET 20.4 update and this Aspose.Words for Java 20.4 update.