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.UpdatePageLayout();
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.