Dear Aspose Support Team,
we are experimenting an issue with .NET Aspose.Words when we convert a Word2003 doc file into pdf.
Layout in the resulting file is not correct. It is not preserved when file is converted.
In attachment you will find the original doc file and an example of converted file.
To replicate the issue you can use this simple code:
byte[] template = System.IO.File.ReadAllBytes(@"E:\Repository\Misc\AsposeTestConsole\TestDoc.doc");
try
{
using (System.IO.Stream stream = new System.IO.MemoryStream(template))
{
var AsposePdfDoc = new Aspose.Words.Document(stream);
Aspose.Words.Saving.PdfSaveOptions opt = new Aspose.Words.Saving.PdfSaveOptions() { };
AsposePdfDoc.Save(@"E:\Repository\Misc\AsposeTestConsole\bin\Debug\" + filename + ".pdf", opt);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
Console.ReadKey();
}
Thank you for your kind support.AsposeDocConversion.zip (1.1 MB)emphasized text