I am trying to save a document produced in Aspose as a PDF. The document contains EMF images but the output contains only spaces where the images should be.
If I use the metafile rendering mode of bitmap then the images do show up.
I can reproduce the problem with this code and the attached word document.
private void button1_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.ShowDialog() != DialogResult.Cancel)
{
this.textBox1.Text = openFileDialog1.FileName;
}
}
private void button2_Click(object sender, EventArgs e)
{
Document doc = new Document(textBox1.Text);
PdfSaveOptions pdfOps = new PdfSaveOptions()
{
MetafileRenderingMode = Aspose.Words.Saving.MetafileRenderingMode.Vector,
//MetafileRenderingMode = Aspose.Words.Saving.MetafileRenderingMode.Bitmap,
};
doc.Save(@“c:\temp\tempfile.pdf”, pdfOps);
}
The issues you have found earlier (filed as WORDSNET-5484) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.