RTF to PDF conversion issue

I am trying to convert RTF content to pdf using Aspose.Word license i had header and footer to each page and i had content as image when header and content image are overlap alignment got distribute how to resolve this.
When i use Aspose online tool to convert its working, But sample file i am converting to pdf with below code i am facing issue.

byte[] byteArray = Encoding.ASCII.GetBytes(File.ReadAllText(@“C:\Users\asagi\Desktop\Prod-1045\File1.txt”));
using (MemoryStream stream = new MemoryStream(byteArray))
Aspose.Words.Document document = new Aspose.Words.Document(stream);
document.Save(@“C:\Users\asagi\Desktop\Prod-1045\1234.pdf”, Aspose.Words.SaveFormat.Pdf);


image.png (6.7 KB)

This Topic is created by Atir_Tahir using Email to Topic tool.


Thanks for your inquiry. Have you tried the latest version of Aspose.Words for .NET i.e. 20.4 on your end? In case the problem still remains, please ZIP and upload your input Word document, Aspose.Words generated PDF file showing the undesired behavior and a comparison screenshot highlighting the problematic area here for testing. We will then investigate the issue on our end and provide you more information.