Free Support Forum - aspose.com

Headers render incorrectly after DOT to PDF conversion using C#

Hi there!

I have attached a template which generates differently when converted to a PDF than it does in Word.
Essentially, here is my code:

var document = new Aspose.Words.Document(@"Header and Footer.dot");
document.Save(@"Header and Footer - Aspose.pdf", Aspose.Words.SaveFormat.Pdf);

Note how the header is repeated on pages 2, 3 and 4 with Aspose, but it is only generated once by Word on page 3 (odd section header with a different first page section header).

Header and Footer.zip (143.0 KB)

Cheers,

James

@James_Driscoll

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-20182. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Thanks for the very swift response :smile:
Glad you’ve been able to reproduce, and looking forward to the fix!!