We are converting a Word document with images to a PDF, which seems to run fine on my Windows PC as well as my Macbook. However, with the code executing on our Linux server, the PDF rendered does not have the images; or they appear blank. The code we are using is, approximately, the following:
var bytes = Convert.FromBase64String(base64data); var fieldRefs = JsonConvert.DeserializeObject<DocumentHelper.FieldReferenceInfo>(fieldRefData); var document = new Aspose.Words.Document(new MemoryStream(bytes)); var docStream = new MemoryStream(); PdfSaveOptions options = new PdfSaveOptions(); options.EmbedFullFonts = true; document.Save(docStream, options);
I added some test code to see if the image nodes are detected in the document, and Aspose still has Shape nodes that contain the images, but the final document is blank.
I should note, this is a C# application running in .NET Core.