Convert a PowerPoint containing metafile to PDF on Azure Functions.

I ran into a problem.

The problem with the ASP.NET Core service file conversion from .pptx to .pdf or .jpeg | ASP.NET Core - EJ 2 Forums | Syncfusion

Because of Azure limitations, System.Drawing.Common cannot be used.

Azure Web App sandbox · projectkudu/kudu Wiki · GitHub

  1. Is there a solution to this problem?
  2. Syncfusion plan to support metafiles?

4 Replies

AN Anto Nihil Sahaya Raj Syncfusion Team May 9, 2022 11:03 AM UTC

Hi Yousuke,

Due to platform limitations, we are unable to provide metafile support in Azure Function. To preserve the expected images in the PDF, we suggest you convert the metafile image formats to bitmap image format (JPEG or PNG) manually in the input PowerPoint document and then perform Presentation to PDF conversion.


Regards,
Anto Nihil S



YK Yousuke Kawamura May 10, 2022 09:17 AM UTC

Hi  Anto,


I am looking to build a system that automatically converts user uploaded events into triggers.

Manual conversion is difficult because of the large number of users and files.


Aspose and Spire support metafile conversion, why doesn't Syncfusion?


Regards,

Yousuke Kawamura



AN Anto Nihil Sahaya Raj Syncfusion Team May 11, 2022 08:06 AM UTC

Hi Yousuke,

Currently, we are analyzing the feasibility to provide metafile support and will update you with more details on 18th May 2022.


Regards,
Anto Nihil S



AN Anto Nihil Sahaya Raj Syncfusion Team May 18, 2022 04:00 PM UTC

Hi Yousuke,

Thank you for your patience.


I am looking to build a system that automatically converts user uploaded events into triggers.


We can be able to find the Metafile images used in the input PowerPoint document and able to convert it as Bitmap images by using System.Drawing APIs, when application is running in a Windows environment. If needed, we can provide the sample for this conversion. Please check the feasibility in your end and let us know to proceed further in this.


Aspose and Spire support metafile conversion, why doesn't Syncfusion?


Internally, we are using the Syncfusion PDF library to draw the text and images in PDF document during PPTX to PDF conversion. As you mentioned, due to the limitation of Azure we are unable to draw the Metafile images directly in PDF.


But competitor (Aspose) has a separate image parser engine to parse and convert a Metafile image into Bitmap image in Azure and then they are drawing the converted bitmap image in the resultant PDF document. As we mentioned earlier at present Syncfusion library does not provide support to draw a metafile image in the Azure function and we will plan this feature once it supported by Microsoft Azure.

Regards,
Anto Nihil S


Loader.
Up arrow icon