Free Support Forum - aspose.com

Emf image size issue


#1

hello,

we are using a linq reporting template to insert emf image (using image tag in the template, the object bound contains a System.Drawing.Image property).
if we save our emf into files (basically save the image property into a file), their size is about 50kbytes. when we use aspose to generate the word document, and then unzip the word file, the emf files are 200 kBytes.

As we are trying to insert 1000 images the size of the word document is really too big. This is a blocking issue for us.
Thanks for your help


#2

@miniseb31

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.


#3

It appears it is not an aspose issue, we generate the emf file ourself so the problem is in our side.
sorry
sebastien


#4

@miniseb31

Thanks for your feedback. It is nice to hear from you that your problem has been solved. Please let us know if you have any more queries.


#5

sorry actually there is an aspose issue.

AsposeEMF.zip (325.1 KB)

in the sample i have a emf file of 122KB, when i generate the word and unzip it, the emf file is 244KB. how do you save the emf file ?
the emf file had been saved with meta = new Metafile(ms, bufferGraphics.GetHdc(),
rect,
MetafileFrameUnit.Pixel,
EmfType.EmfOnly);


#6

@miniseb31

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-18024. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.