Hi,
When I save a Word document (the document contains emf image generated by Aspose.Cells), I noticed there are strange white dots in the pdf text.
Code for generating the emf:
var newWorkbook = new Workbook(dir + @"test.xlsx");
var options = new ImageOrPrintOptions
{
ImageFormat = ImageFormat.Emf,
OnlyArea = false,
TextRenderingHint = TextRenderingHint.ClearTypeGridFit,
OnePagePerSheet = true,
Transparent = true
};
var sheet = newWorkbook.Worksheets[0];
sheet.PageSetup.PrintArea = "A1:E4";
sheet.PageSetup.LeftMargin =
sheet.PageSetup.RightMargin = sheet.PageSetup.TopMargin
= sheet.PageSetup.BottomMargin = sheet.PageSetup.HeaderMargin
= sheet.PageSetup.FooterMargin = 0;
SheetRender render = new SheetRender(sheet, options);
render.ToImage(0, dir + @"out.emf");
After the emf is generated, I copied the emf into Word, and then saved the Word document as pdf file using ‘Save As’ in Word, and the issue happened.
I’ve attached the test files (original xlsx, output emf, Word with the emf and final PDF) as well as a screenshot for your reference.
Could you please take a look into this?
Thanks
test.zip (186.9 KB)
screenshot.png (62.3 KB)