Hello,
When converting to Pdf and previewing the same Word file, we’re having problems with the images in the documents.
The images in the table overlap and are not in the right place. We can this that thanks to files in attached.
Excepted.pdf (142.2 KB) → correct file, we want
result.pdf (125.7 KB) → File we have after converting to pdf
R24_non-confidential report2 .docx (150.5 KB) → file to convert
protected void ConvertToPdf(string wordFile)
{
Document doc = new Document(wordFile);
PdfSaveOptions options = new PdfSaveOptions()
{
SaveFormat = SaveFormat.Pdf,
};
doc.Save(Path.ChangeExtension(wordFile, ".pdf"), options);
}
We used the latest version of Aspose.Word : 24.5.0
We’re developing a web application and your solution is being used by our application for customers who want to be able to preview and convert their files correctly.
Thanks in advance