Hallo,
We have a commercial license for Spire.Doc for .NET and we've found another issue related to the same process for which we've previosuly opened this thread https://www.e-iceblue.com/forum/issue-with-tables-when-converting-docx-to-pdf-t7270.html which, in the meanwhile, has been solved (thanks again, by the way).
The problem is related to images in tables. In the original .docx file (created by Word) we have a table with a single cell and an image in it. The image is aligned at the center of the cell.
When we convert the .docx file to pdf the image is aligned to the left. Of course we want to the image to keep the center alignment assigned in the original .docx.
Please find attached the source .docx file and the resulting .pdf file (Please note that the attached pdf is the result of a print to pdf operation of the original pdf generated by Spire.Doc. This has been made to create a pdf file with just the page where the error occurs).
You can find below the very simple code we use:
Spire.Doc.Document doc = new Spire.Doc.Document();
string fullpath = Path.Combine(HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["PATHFILETEMPLATE"].ToString()), "default", "doc di partenza.docx");
doc.LoadFromFile(fullpath);
doc.SaveToFile(fullpath.Replace(".docx", ".pdf"), Spire.Doc.FileFormat.PDF);
Basically to show you the problem, we just open an existing docx file and then save IT as PDF.
Thanks in advance for your support.
Matteo Bruzzese