Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Nov 27, 2023 1:19 pm

Hi,
I want to convert the Word file to pdf file within the Asp.net core project. However, I get the following error message. "System.Drawing.Common is not supported on this platform"
Do these dll files only work in windows and console applications?

bircpartner
 
Posts: 1
Joined: Mon Nov 27, 2023 12:31 pm

Tue Nov 28, 2023 2:48 am

Hello,

Thanks for your inquiry.
Our Spire.Doc supports running programs on Windows, macOS, and Linux systems. Based on the information you provided, I conducted a preliminary test, but did not reproduce the issue you mentioned. How did you import our product? Did you import it directly through the Nuget manager or manually import the dlls in the "netcoreapp2.0" folder? If you imported it manually, you also need to import the following references through the Nuget manager.
Microsoft.Win32.Registry >= 4.5.0
System.Drawing.Common >= 4.5.0
System.Security.Permissions >= 4.5.0

In addition, I have attached my testing project, which can be downloaded and unzipped to directly run the project using Visual Studio. Please test it on your side.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc

cron