Good day!
The below code is working well with other .docx file
Some other .docx file is not converting to PDF
I have downloaded the updated hotfix of Spire.Doc.dll V6.12.1.4045 and Spire.Pdf.dll V4.12.0.2046
Here's my code below:
string newFilePath = Path.Combine(Path.GetDirectoryName(destpath), Path.GetFileNameWithoutExtension(sourcePath) + "_" + DateTime.Now.ToString("MMddyyhhmmss") + ".pdf");
Spire.Doc.Document doc = new Spire.Doc.Document();
doc.LoadFromFile(sourcePath, Spire.Doc.FileFormat.Docx2013);
//Spire.Doc.ToPdfParameterList topdf = new Spire.Doc.ToPdfParameterList();
//topdf.UsePSCoversion = true;
>>>this causing the error ==== doc.SaveToFile(newFilePath, Spire.Doc.FileFormat.PDF);
Thank you