I have some words, When i convert to pdf using Aspose.Words 24.3, The layout is messed up.
I have listed two exception examples.
Sample code 1
void Main()
{
var doc = new Aspose.Words.Document(@"C:\Users\54390\Downloads\cb1e37dfa0.doc");
doc.Save(@"C:\Users\54390\Downloads\cb1e37dfa0.pdf", Aspose.Words.SaveFormat.Pdf);
}
Input file 1
cb1e37dfa0.zip (66.2 KB)
Output file 1
cb1e37dfa0.pdf (104.7 KB)
=============================================================================
Sample code 2
void Main()
{
var doc = new Aspose.Words.Document(@"C:\Users\54390\Downloads\bdf14d8.doc");
doc.Save(@"C:\Users\54390\Downloads\bdf14d8.pdf", Aspose.Words.SaveFormat.Pdf);
}
Input file 2
bdf14d8.zip (39.4 KB)
Output file 2
bdf14d8.pdf (114.1 KB)