Embedding EMF to PDF is rasterizing

Environment: DotNet-Framework-4.8.1 with Winforms.
When I am embedding data from an EMF file, the created PDF rasterizes the content.
In short: I do not use “Aspose.Pdf.Image” but read the file into a FileStream. The stream is used as parameter for “page.AddImage()”. Basically it works, but the output is rasterized.
Can you help me with that?

Hi, karl.pfeiler,
We are glad to welcome you to our community.

The problem with embedding EMF images is that the PDF specification doesn’t allow EMF embedding. Therefore, the Aspose.PDF library must convert the EMF to a raster image.
You can try image.IsApplyResolution = true; option. In some cases, it improves the output image quality.

If converting EMF to PDF vector images is important to you, I can create a research or feature task so the development team can explore this possibility. However, don’t expect quick results.

P.S. Please note that issues related to classes in the Aspose.Pdf namespace should be posted on the Aspose PDF product family support forum, except for Aspose.Pdf.LowCode namespace. Issues related to low-code products (plugins) should be posted on this - Free Support Forum - aspose.net forum. This minor misunderstanding won’t prevent us from processing your request.