I have an OEM license for Aspose.Total. When I feed a certain .docx file in, I get a .pdf out that has embedded images missing. Please see attached and the code below. What am I doing wrong?
Also, the output file doesn't seem to preserve formatting well (spaces). Any thoughts?
Aspose.Words.License lic = new Aspose.Words.License(); lic.SetLicense("Aspose.Total.lic");
Aspose.Pdf.License lic2 = new Aspose.Pdf.License(); lic2.SetLicense("Aspose.Total.lic");
sourceFile = "Word2007TextwImages.docx";
outputFile = "Word2007TextwImages.pdf";
FileToPDF(sourceFile, outputFile, Aspose.Words.LoadFormat.Docx);
private string FileToPDF(string sourceFile, string targetFile, Aspose.Words.LoadFormat sourceFormat)
string tempXml = Path.ChangeExtension(targetFile, ".xml");
Aspose.Words.Document doc = new Aspose.Words.Document(sourceFile, sourceFormat, null);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();